diff --git a/CMakeLists.txt b/CMakeLists.txt index d254b34e..db255f52 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ # General parameters -cmake_minimum_required (VERSION 3.5.0) +cmake_minimum_required (VERSION 3.13.0) project(ariles2 VERSION 2.4.0) diff --git a/cmake/arilesConfig.cmake.in b/cmake/arilesConfig.cmake.in index a55e16ed..471353e7 100644 --- a/cmake/arilesConfig.cmake.in +++ b/cmake/arilesConfig.cmake.in @@ -3,7 +3,6 @@ set (@PROJECT_NAME@_VERSION @PROJECT_VERSION_MAJOR@.@PROJECT_VERSION_MINOR@.@PRO @PACKAGE_INIT@ @ARILES_FIND_CORE@ -@ARILES_LINK_DIRECTORIES@ include("${CMAKE_CURRENT_LIST_DIR}/@ARILES_COMPONENT@_targets.cmake") diff --git a/cmake/ariles_install_component.cmake b/cmake/ariles_install_component.cmake index 43d90f07..cddf66de 100644 --- a/cmake/ariles_install_component.cmake +++ b/cmake/ariles_install_component.cmake @@ -69,7 +69,7 @@ add_dependencies(${VISITOR_TARGET_PREFIX}_${ARILES_VISITOR} ${TGT_ARILES_VISITOR set(ARILES_FIND_CORE "find_package(${PROJECT_NAME}-core REQUIRED)") if(ARILES_VISITOR_${ARILES_VISITOR}_LIBRARY_DIRS) - set(ARILES_LINK_DIRECTORIES "link_directories(\"${ARILES_VISITOR_${ARILES_VISITOR}_LIBRARY_DIRS}\")") + target_link_directories(${TGT_ARILES_VISITOR_LIB} PUBLIC \"${ARILES_VISITOR_${ARILES_VISITOR}_LIBRARY_DIRS}\")") endif() configure_package_config_file( "${PROJECT_SOURCE_DIR}/cmake/arilesConfig.cmake.in" @@ -114,4 +114,3 @@ set("DEB_CMAKE_FLAGS_${ARILES_COMPONENT}" "-DARILES_VISITOR_${ARILES_VISITOR}=ON set(TGT_ARILES_VISITOR_LIB "") set(ARILES_FIND_CORE "") -set(ARILES_LINK_DIRECTORIES "")