mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-29 00:39:00 +08:00
17 lines
711 B
Diff
17 lines
711 B
Diff
|
diff --git a/CMakeModules/OsgMacroUtils.cmake b/CMakeModules/OsgMacroUtils.cmake
|
||
|
index ce55be0..9b7107c 100644
|
||
|
--- a/CMakeModules/OsgMacroUtils.cmake
|
||
|
+++ b/CMakeModules/OsgMacroUtils.cmake
|
||
|
@@ -37,6 +37,11 @@ SET(VALID_BUILDER_VERSION OFF)
|
||
|
|
||
|
MACRO(LINK_WITH_VARIABLES TRGTNAME)
|
||
|
FOREACH(varname ${ARGN})
|
||
|
+ string(REPLACE "_LIBRARY" "_LIBRARIES" lwv_libraries "${varname}")
|
||
|
+ if(DEFINED ${lwv_libraries})
|
||
|
+ TARGET_LINK_LIBRARIES(${TRGTNAME} ${${lwv_libraries}})
|
||
|
+ continue()
|
||
|
+ endif()
|
||
|
IF(${varname}_DEBUG)
|
||
|
IF(${varname}_RELEASE)
|
||
|
TARGET_LINK_LIBRARIES(${TRGTNAME} optimized "${${varname}_RELEASE}" debug "${${varname}_DEBUG}")
|