Changeset 10185
- Timestamp:
- Jan 10, 2015, 2:22:06 PM (10 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/cmake/tools/TargetUtilities.cmake
r9595 r10185 448 448 # the target name (for example orxonox <-> liborxonox) 449 449 450 CMAKE_POLICY(SET CMP0026 OLD) # we only use the file's name, not its actual location, so the old policy is fine 450 451 GET_TARGET_PROPERTY(_target_loc ${_target} LOCATION) 451 452 GET_FILENAME_COMPONENT(_target_name ${_target_loc} NAME_WE) 453 CMAKE_POLICY(SET CMP0026 NEW) # set policy back to 'new' 452 454 453 455 IF(CMAKE_CONFIGURATION_TYPES) -
code/trunk/src/CMakeLists.txt
r9595 r10185 73 73 74 74 # Get name to configure the run scripts 75 CMAKE_POLICY(SET CMP0026 OLD) # we only use the file's name, not its actual location, so the old policy is fine 75 76 GET_TARGET_PROPERTY(_exec_loc orxonox-main LOCATION) 76 77 GET_FILENAME_COMPONENT(_exec_name ${_exec_loc} NAME) 77 78 SET(ORXONOX_EXECUTABLE_NAME ${_exec_name} CACHE INTERNAL "") 79 CMAKE_POLICY(SET CMP0026 NEW) # set policy back to 'new' 78 80 79 81
Note: See TracChangeset
for help on using the changeset viewer.