From: James Turner Date: Thu, 17 Oct 2013 16:12:02 +0000 (+0100) Subject: Re-order install(EXPORT ) lines. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3c2f97a8d2ec1b644ea6475f4e3d5886f946ca43;p=simgear.git Re-order install(EXPORT ) lines. Certain cmake builds/versions complain when a dependent target is exported but dependencies are not. Export SimGearCore before SimGearScene. --- 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")