| 165 | | std::string vrjuggler_ver_str; |
|---|
| 166 | | const std::string vrjuggler_version("VRJ_VERSION"); |
|---|
| 167 | | |
|---|
| 168 | | // If $SNX_VERSION is set, use the value of that environment variable |
|---|
| 169 | | // as the version component of the plug-in subdirectory name. Otherwise, |
|---|
| 170 | | // use the compile-time value provided by SNX_VERSION_DOT. |
|---|
| 171 | | if ( ! vpr::System::getenv(vrjuggler_version, vrjuggler_ver_str) ) |
|---|
| 172 | | { |
|---|
| 173 | | vrjuggler_ver_str = VRJ_VERSION_DOT; |
|---|
| 174 | | } |
|---|
| 175 | | |
|---|
| 176 | | std::string vrjuggler_subdir(vrjuggler_subdir_base + std::string("-") + |
|---|
| 177 | | vrjuggler_ver_str); |
|---|
| 178 | | |
|---|
| 179 | | // If versioning is not enabled, then the directory containing the |
|---|
| 180 | | // vrjuggler plug-ins will not incorporate version information. |
|---|
| | 165 | std::string vrjuggler_ver_str; |
|---|
| | 166 | const std::string vrjuggler_version("VRJ_VERSION"); |
|---|
| | 167 | |
|---|
| | 168 | // If $VRJ_VERSION is set, use the value of that environment variable |
|---|
| | 169 | // as the version component of the plug-in subdirectory name. Otherwise, |
|---|
| | 170 | // use the compile-time value provided by VRJ_VERSION_DOT. |
|---|
| | 171 | if ( ! vpr::System::getenv(vrjuggler_version, vrjuggler_ver_str) ) |
|---|
| | 172 | { |
|---|
| | 173 | vrjuggler_ver_str = VRJ_VERSION_DOT; |
|---|
| | 174 | } |
|---|
| | 175 | |
|---|
| | 176 | std::string vrjuggler_subdir(vrjuggler_subdir_base + std::string("-") + |
|---|
| | 177 | vrjuggler_ver_str); |
|---|
| | 178 | |
|---|
| | 179 | // If versioning is not enabled, then the directory containing the |
|---|
| | 180 | // VR Juggler plug-ins will not incorporate version information. |
|---|