[Orxonox-commit 5547] r10210 - code/trunk/cmake
landauf at orxonox.net
landauf at orxonox.net
Sat Jan 31 15:35:49 CET 2015
Author: landauf
Date: 2015-01-31 15:35:49 +0100 (Sat, 31 Jan 2015)
New Revision: 10210
Modified:
code/trunk/cmake/PackageConfigMSVC.cmake
Log:
not sure how the MSVC dependency package v7 works, but v6 still needs the hardcoded library names
Modified: code/trunk/cmake/PackageConfigMSVC.cmake
===================================================================
--- code/trunk/cmake/PackageConfigMSVC.cmake 2015-01-29 16:44:37 UTC (rev 10209)
+++ code/trunk/cmake/PackageConfigMSVC.cmake 2015-01-31 14:35:49 UTC (rev 10210)
@@ -54,6 +54,27 @@
# Sets the library path for the FIND_LIBRARY
SET(CMAKE_LIBRARY_PATH ${DEP_LIBRARY_DIR})
+ # Certain find scripts don't behave as ecpected to we have
+ # to specify the libraries ourselves. (dependency older than 7 only)
+ COMPARE_VERSION_STRINGS(${DEPENDENCY_VERSION} 7 _result TRUE)
+ IF(_result EQUAL -1)
+ IF(MSVC10)
+ SET(TCL_LIBRARY
+ optimized ${DEP_LIBRARY_DIR}/tcl85t.lib
+ debug ${DEP_LIBRARY_DIR}/tcl85tg.lib
+ CACHE FILEPATH ""
+ )
+ SET(ZLIB_LIBRARY
+ optimized ${DEP_LIBRARY_DIR}/zlib-vc100.lib
+ debug ${DEP_LIBRARY_DIR}/zlib-vc100_d.lib
+ CACHE FILEPATH ""
+ )
+ ELSE()
+ SET(TCL_LIBRARY ${DEP_LIBRARY_DIR}/tcl85.lib CACHE FILEPATH "")
+ SET(ZLIB_LIBRARY ${DEP_LIBRARY_DIR}/zdll.lib CACHE FILEPATH "")
+ ENDIF()
+ ENDIF()
+
# Part of Platform SDK and usually gets linked automatically
SET(WMI_LIBRARY wbemuuid.lib)
More information about the Orxonox-commit
mailing list