Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11694 for code/trunk


Ignore:
Timestamp:
Jan 3, 2018, 2:33:12 AM (7 years ago)
Author:
landauf
Message:

CMP0026 is deprecated in recent versions of CMake → moved it to the APPLE section because it seems to be used only there and therefore should be fixed there

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/CMakeLists.txt

    r10624 r11694  
    7676ADD_DEPENDENCIES(orxonox-main ${ORXONOX_MODULES})
    7777
    78 # Get name to configure the run scripts
    79 IF (POLICY CMP0026)
    80   CMAKE_POLICY(PUSH)
    81   CMAKE_POLICY(SET CMP0026 OLD) # we only use the file's name, not its actual location, so the old policy is fine
    82 ENDIF()
    83 GET_TARGET_PROPERTY(_exec_loc orxonox-main LOCATION)
    84 GET_FILENAME_COMPONENT(_exec_name ${_exec_loc} NAME)
    85 SET(ORXONOX_EXECUTABLE_NAME ${_exec_name} CACHE INTERNAL "")
    86 IF (POLICY CMP0026)
    87   CMAKE_POLICY(POP) # set policy back to original settings
    88 ENDIF()
    89 
    9078
    9179# Apple Mac OS X specific build settings
     
    9684    "-framework Foundation"
    9785  )
     86
     87  # Get name to configure the run scripts
     88  IF (POLICY CMP0026)
     89    CMAKE_POLICY(PUSH)
     90    CMAKE_POLICY(SET CMP0026 OLD) # we only use the file's name, not its actual location, so the old policy is fine
     91  ENDIF()
     92  GET_TARGET_PROPERTY(_exec_loc orxonox-main LOCATION)
     93  GET_FILENAME_COMPONENT(_exec_name ${_exec_loc} NAME)
     94  SET(ORXONOX_EXECUTABLE_NAME ${_exec_name} CACHE INTERNAL "")
     95  IF (POLICY CMP0026)
     96    CMAKE_POLICY(POP) # set policy back to original settings
     97  ENDIF()
    9898
    9999  # Post-build step for the creation of the Dev-App bundle
Note: See TracChangeset for help on using the changeset viewer.