[Orxonox-commit 2416] r7130 - code/branches/presentation3/cmake

adrfried at orxonox.net adrfried at orxonox.net
Wed Jun 9 21:57:04 CEST 2010


Author: adrfried
Date: 2010-06-09 21:57:04 +0200 (Wed, 09 Jun 2010)
New Revision: 7130

Modified:
   code/branches/presentation3/cmake/TargetUtilities.cmake
Log:
install executables even when compiling with static

Modified: code/branches/presentation3/cmake/TargetUtilities.cmake
===================================================================
--- code/branches/presentation3/cmake/TargetUtilities.cmake	2010-06-09 19:46:26 UTC (rev 7129)
+++ code/branches/presentation3/cmake/TargetUtilities.cmake	2010-06-09 19:57:04 UTC (rev 7130)
@@ -244,7 +244,7 @@
     PRECOMPILED_HEADER_FILES_POST_TARGET(${_target_name} ${_arg_PCH_FILE})
   ENDIF()
 
-  IF(NOT _arg_STATIC AND NOT _arg_NO_INSTALL)
+  IF((${_target_type} STREQUAL "EXECUTABLE" OR NOT _arg_STATIC) AND NOT _arg_NO_INSTALL)
     IF(_arg_MODULE)
       INSTALL(TARGETS ${_target_name}
         RUNTIME DESTINATION ${MODULE_INSTALL_DIRECTORY}




More information about the Orxonox-commit mailing list