Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11697 for code


Ignore:
Timestamp:
Jan 3, 2018, 11:13:37 AM (7 years ago)
Author:
landauf
Message:

reverted r11694, apparently ORXONOX_EXECUTABLE_NAME IS used (for run-scripts in ./bin)

File:
1 edited

Legend:

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

    r11694 r11697  
    7676ADD_DEPENDENCIES(orxonox-main ${ORXONOX_MODULES})
    7777
     78# Get name to configure the run scripts
     79IF (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
     82ENDIF()
     83GET_TARGET_PROPERTY(_exec_loc orxonox-main LOCATION)
     84GET_FILENAME_COMPONENT(_exec_name ${_exec_loc} NAME)
     85SET(ORXONOX_EXECUTABLE_NAME ${_exec_name} CACHE INTERNAL "")
     86IF (POLICY CMP0026)
     87  CMAKE_POLICY(POP) # set policy back to original settings
     88ENDIF()
     89
    7890
    7991# Apple Mac OS X specific build settings
     
    8496    "-framework Foundation"
    8597  )
    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.