Skip to content

Commit

Permalink
Set target property CIFPP_DATA_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
mhekkel committed Oct 7, 2024
1 parent ca241bd commit d07890d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ cmake_minimum_required(VERSION 3.23)
# set the project name
project(
libcifpp
VERSION 7.0.6
VERSION 7.0.7
LANGUAGES CXX)

list(PREPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
Expand Down Expand Up @@ -440,6 +440,7 @@ endif()

if(CIFPP_DATA_DIR)
target_compile_definitions(cifpp PUBLIC DATA_DIR="${CIFPP_DATA_DIR}")
set_target_properties(cifpp PROPERTIES CIFPP_DATA_DIR ${CIFPP_DATA_DIR})
endif()

if(NOT PROJECT_IS_TOP_LEVEL)
Expand Down
4 changes: 4 additions & 0 deletions changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Version 7.0.7
- Set CIFPP_DATA_DIR on target cifpp for use in projects that include
libcifpp directly

Version 7.0.6
- Fix linking to std::atomic

Expand Down

0 comments on commit d07890d

Please sign in to comment.