Skip to content
Snippets Groups Projects
Commit 3fee522f authored by Sylvester Joosten's avatar Sylvester Joosten
Browse files

changed order of commands in config file

parent 76f19a23
No related branches found
No related tags found
No related merge requests found
@PACKAGE_INIT@
include("@PACKAGE_TARGETS_INSTALL_PATH@")
check_required_components(HCANA)
find_package(PODD REQUIRED)
message(STATUS "Found HCANA")
#get_filename_component(HCANA_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
#include(CMakeFindDependencyMacro)
#
#list(APPEND CMAKE_MODULE_PATH ${HCANA_CMAKE_DIR})
#
## NOTE Had to use find_package because find_dependency does not support COMPONENTS or MODULE until 3.8.0
#
##find_dependency(Boost 1.55 REQUIRED COMPONENTS regex)
##find_dependency(RapidJSON 1.0 REQUIRED MODULE)
##find_package(Boost 1.55 REQUIRED COMPONENTS regex)
##find_package(RapidJSON 1.0 REQUIRED MODULE)
#list(REMOVE_AT CMAKE_MODULE_PATH -1)
#
#if(NOT TARGET HCANA::PODD)
# include("${HCANA_CMAKE_DIR}/PODDTargets.cmake")
#endif()
#
#set(HCANA_LIBRARIES PODD::PODD)
...@@ -9,10 +9,10 @@ if(IS_DIRECTORY "@PACKAGE_INSTALL_CONFIGDIR@/Modules") ...@@ -9,10 +9,10 @@ if(IS_DIRECTORY "@PACKAGE_INSTALL_CONFIGDIR@/Modules")
list(APPEND CMAKE_MODULE_PATH "@PACKAGE_INSTALL_CONFIGDIR@/Modules") list(APPEND CMAKE_MODULE_PATH "@PACKAGE_INSTALL_CONFIGDIR@/Modules")
endif() endif()
@FIND_DEPENDENCY_COMMANDS@
include("@PACKAGE_TARGETS_FILE@") include("@PACKAGE_TARGETS_FILE@")
@FIND_DEPENDENCY_COMMANDS@
check_required_components(@PROJECT_NAME_UC@) check_required_components(@PROJECT_NAME_UC@)
## Extra rpath stuff for MacOS ## Extra rpath stuff for MacOS
...@@ -20,5 +20,5 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") ...@@ -20,5 +20,5 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(CMAKE_INSTALL_RPATH set(CMAKE_INSTALL_RPATH
${CMAKE_INSTALL_RPATH} ${CMAKE_INSTALL_RPATH}
"@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@") "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@")
message("Podd: set rpath to ${CMAKE_INSTALL_RPATH}") message("hcana: set rpath to ${CMAKE_INSTALL_RPATH}")
endif() endif()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment