Skip to content

Commit

Permalink
cmake: require 3.13, use target_link_directories()
Browse files Browse the repository at this point in the history
  • Loading branch information
asherikov committed Jan 3, 2025
1 parent e2cf076 commit b5b035f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)


Expand Down
1 change: 0 additions & 1 deletion cmake/arilesConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -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")

3 changes: 1 addition & 2 deletions cmake/ariles_install_component.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 "")

0 comments on commit b5b035f

Please sign in to comment.