[Orxonox-commit 1088] r5809 - code/branches/core5/cmake

rgrieder at orxonox.net rgrieder at orxonox.net
Sun Sep 27 15:30:42 CEST 2009


Author: rgrieder
Date: 2009-09-27 15:30:42 +0200 (Sun, 27 Sep 2009)
New Revision: 5809

Modified:
   code/branches/core5/cmake/TargetUtilities.cmake
Log:
Added "lib" library prefix for msvc. This resolved a naming conflict between orxonox (lib) and orxonox (exe).

Modified: code/branches/core5/cmake/TargetUtilities.cmake
===================================================================
--- code/branches/core5/cmake/TargetUtilities.cmake	2009-09-27 12:59:28 UTC (rev 5808)
+++ code/branches/core5/cmake/TargetUtilities.cmake	2009-09-27 13:30:42 UTC (rev 5809)
@@ -165,6 +165,13 @@
                    ${_${_target_name}_files})
   ENDIF()
 
+  # Change library prefix to "lib"
+  IF(MSVC AND ${_target_type} STREQUAL "LIBRARY")
+    SET_TARGET_PROPERTIES(${_target_name} PROPERTIES
+      PREFIX "lib"
+    )
+  ENDIF()
+
   # MODULE B
   IF (_arg_MODULE)
     SET_TARGET_PROPERTIES(${_target_name} PROPERTIES




More information about the Orxonox-commit mailing list