From 3c2f97a8d2ec1b644ea6475f4e3d5886f946ca43 Mon Sep 17 00:00:00 2001 From: James Turner Date: Thu, 17 Oct 2013 17:12:02 +0100 Subject: [PATCH] Re-order install(EXPORT ) lines. Certain cmake builds/versions complain when a dependent target is exported but dependencies are not. Export SimGearCore before SimGearScene. --- simgear/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/simgear/CMakeLists.txt b/simgear/CMakeLists.txt index 9d912872..eba80cc9 100644 --- a/simgear/CMakeLists.txt +++ b/simgear/CMakeLists.txt @@ -54,7 +54,9 @@ if(SIMGEAR_SHARED) set_property(TARGET SimGearCore PROPERTY LINKER_LANGUAGE CXX) set_property(TARGET SimGearCore PROPERTY VERSION ${SIMGEAR_VERSION}) set_property(TARGET SimGearCore PROPERTY SOVERSION ${SIMGEAR_SOVERSION}) - + install(TARGETS SimGearCore EXPORT SimGearCoreConfig LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) + install(EXPORT SimGearCoreConfig DESTINATION share/SimGearCore) + if(NOT SIMGEAR_HEADLESS) add_library(SimGearScene SHARED ${sceneSources}) set_property(TARGET SimGearScene PROPERTY LINKER_LANGUAGE CXX) @@ -65,8 +67,6 @@ if(SIMGEAR_SHARED) install(EXPORT SimGearSceneConfig DESTINATION share/SimGearScene) endif() - install(TARGETS SimGearCore EXPORT SimGearCoreConfig LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) - install(EXPORT SimGearCoreConfig DESTINATION share/SimGearCore) else() message(STATUS "Library building mode: STATIC LIBRARIES") -- 2.39.5