Skip to content

Commit db27097

Browse files
committed
Use 'install (DIRECTORY...' instead of file sets.
1 parent 7106b9d commit db27097

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

orc-rt/include/CMakeLists.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
set(files
1+
set(ORC_RT_HEADERS
22
orc-rt-c/orc-rt.h
33
)
44

@@ -7,10 +7,10 @@ target_include_directories(orc-rt-headers INTERFACE
77
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
88
$<INSTALL_INTERFACE:include>
99
)
10-
target_sources(orc-rt-headers
11-
INTERFACE FILE_SET HEADERS
12-
BASE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}
13-
FILES ${files}
10+
set_property(TARGET orc-rt-headers
11+
PROPERTY PUBLIC_HEADER ${ORC_RT_HEADERS}
12+
)
13+
install(DIRECTORY ./
14+
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/
15+
FILES_MATCHING PATTERN "*.h"
1416
)
15-
install(TARGETS orc-rt-headers
16-
FILE_SET HEADERS DESTINATION include)

0 commit comments

Comments
 (0)