Skip to content

Commit d07890d

Browse files
committed
Set target property CIFPP_DATA_DIR
1 parent ca241bd commit d07890d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ cmake_minimum_required(VERSION 3.23)
2727
# set the project name
2828
project(
2929
libcifpp
30-
VERSION 7.0.6
30+
VERSION 7.0.7
3131
LANGUAGES CXX)
3232

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

441441
if(CIFPP_DATA_DIR)
442442
target_compile_definitions(cifpp PUBLIC DATA_DIR="${CIFPP_DATA_DIR}")
443+
set_target_properties(cifpp PROPERTIES CIFPP_DATA_DIR ${CIFPP_DATA_DIR})
443444
endif()
444445

445446
if(NOT PROJECT_IS_TOP_LEVEL)

changelog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Version 7.0.7
2+
- Set CIFPP_DATA_DIR on target cifpp for use in projects that include
3+
libcifpp directly
4+
15
Version 7.0.6
26
- Fix linking to std::atomic
37

0 commit comments

Comments
 (0)