Skip to content

Commit 781e2dc

Browse files
committed
copy header files to keep them up to date
1 parent 5c0c375 commit 781e2dc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Desktop/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,8 @@ target_include_directories(
106106
${PROJECT_SOURCE_DIR}/CommonData
107107
${PROJECT_SOURCE_DIR}/QMLComponents
108108
# ReadStat
109-
$<$<PLATFORM_ID:Windows>:${RTOOLS_LIBREADSTAT_H}>
110109
${LIBREADSTAT_INCLUDE_DIRS}
111110
# librdata
112-
$<$<PLATFORM_ID:Windows>:${RTOOLS_LIBRDATA_H}>
113111
${LIBRDATA_INCLUDE_DIRS}
114112
# JSONCPP
115113
$<$<PLATFORM_ID:Linux>:${_PKGCONFIG_LIB_JSONCPP_INCLUDEDIR}>

Tools/CMake/Libraries.cmake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,8 @@ if(WIN32)
286286

287287
if(EXISTS ${RTOOLS_LIBREADSTAT_H})
288288
message(CHECK_PASS "found")
289-
message(STATUS " ${RTOOLS_LIBREADSTAT_H}")
289+
message(STATUS "Now copy ${RTOOLS_LIBREADSTAT_H} to source directory.")
290+
configure_file("${RTOOLS_LIBREADSTAT_H}" "${CMAKE_SOURCE_DIR}/Desktop/data/importers/readstat/readstat.h" COPYONLY)
290291
else()
291292
message(CHECK_FAIL "not found")
292293
message(
@@ -341,7 +342,8 @@ if(WIN32)
341342

342343
if(EXISTS ${RTOOLS_LIBRDATA_H})
343344
message(CHECK_PASS "found")
344-
message(STATUS " ${RTOOLS_LIBRDATA_H}")
345+
message(STATUS "Now copy ${RTOOLS_LIBRDATA_H} to source directory")
346+
configure_file("${RTOOLS_LIBRDATA_H}" "${CMAKE_SOURCE_DIR}/Desktop/data/importers/rdata/rdata.h" COPYONLY)
345347
else()
346348
message(CHECK_FAIL "not found")
347349
message(

0 commit comments

Comments
 (0)