From 56548b384d692184ac8cc4fdef9531390ad5c569 Mon Sep 17 00:00:00 2001 From: makson96 Date: Wed, 25 May 2016 00:41:36 +0200 Subject: [PATCH] Include FindPkgMacros to use make_library_set In CMakList.txt there is make_library_set and macro for it is defined in FindPkgMacros, so FindPkgMacros needs to be imported to avoid Error: Unknown CMake command "make_library_set". --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 516ec48fa..4d94f79f0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -221,6 +221,7 @@ if(OSG_STATIC) # For now, users wishing to do a static build will need to pass the path to where the plugins reside # More clever logic would need to deduce the path, probably installed under /lib/osgPlugins- + include(FindPkgMacros) find_library(${PLUGIN_NAME}_LIBRARY_REL NAMES ${PLUGIN_NAME} HINTS ${OSG_PLUGIN_LIB_SEARCH_PATH}) find_library(${PLUGIN_NAME}_LIBRARY_DBG NAMES ${PLUGIN_NAME_DBG} HINTS ${OSG_PLUGIN_LIB_SEARCH_PATH}) make_library_set(${PLUGIN_NAME}_LIBRARY)