Skip to content

Commit

Permalink
Update head_2
Browse files Browse the repository at this point in the history
  • Loading branch information
asherikov committed Jan 3, 2025
1 parent a51f4a0 commit a55abc2
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
6 changes: 6 additions & 0 deletions ariles/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ UNRELEASED

Changed
-------
* API BROKEN: cmake changes not backward compatible!
* Rename exported cmake targets: use namespace and consistent naming.
* Require cmake >= 3.13.

Removed
-------
* Deprecated `${PROJECT_NAME}-${ARILES_COMPONENT}_LIBRARIES` cmake variables.


2.4.0
Expand Down
5 changes: 1 addition & 4 deletions ariles/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 Expand Up @@ -326,9 +326,6 @@ if (${ARILES_ENABLE_CORE})
ARCHIVE_FILE "${CPACK_PACKAGE_NAME}-core-${CPACK_PACKAGE_VERSION}")


set(ariles_LIBRARIES "${PROJECT_NAME}-core_LIBRARIES")
set(ARILES_LIBRARIES "${PROJECT_NAME}::core")

set(ARILES_COMPONENT_CMAKE_DIR "share/${PROJECT_NAME}-core/")


Expand Down
2 changes: 1 addition & 1 deletion ariles/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ Dependencies and compilation
Dependencies
------------

- `cmake` >= 3.1
- `cmake` >= 3.13
- `C++17` compatible compiler
- `boost`

Expand Down
2 changes: 0 additions & 2 deletions ariles/cmake/arilesConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +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")

set (@ariles_LIBRARIES@ "@ARILES_LIBRARIES@")
5 changes: 1 addition & 4 deletions ariles/cmake/ariles_install_component.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,9 @@ set(ARILES_VISITOR_${ARILES_VISITOR}_LIBS "${TGT_ARILES_VISITOR_LIB};${ARILES_VI
add_dependencies(${VISITOR_TARGET_PREFIX}_${ARILES_VISITOR} ${TGT_ARILES_VISITOR_LIB})


set(ariles_LIBRARIES "${PROJECT_NAME}-${ARILES_COMPONENT}_LIBRARIES")
set(ARILES_LIBRARIES "${PROJECT_NAME}::${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 @@ -116,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 a55abc2

Please sign in to comment.