File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -74,13 +74,18 @@ set(CMAKE_BINARY_DIR ${CMAKE_SOURCE_DIR}/lib/${CMAKE_BUILD_TYPE})
74
74
set (EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR} )
75
75
set (LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR} )
76
76
77
+ add_subdirectory (src )
78
+
77
79
if (LLVM_BINARY_DIR )
78
- file (COPY ${CMAKE_CURRENT_SOURCE_DIR} /include/xpti
79
- DESTINATION ${LLVM_BINARY_DIR} /include )
80
+ add_custom_target (xpti-headers ALL
81
+ COMMAND ${CMAKE_COMMAND} -E copy_directory
82
+ ${CMAKE_CURRENT_SOURCE_DIR} /include/xpti
83
+ ${LLVM_BINARY_DIR} /include/xpti
84
+ COMMENT "Copying XPTI headers..."
85
+ )
86
+ add_dependencies (xpti xpti-headers )
80
87
endif ()
81
88
82
- add_subdirectory (src )
83
-
84
89
include (GNUInstallDirs )
85
90
install (DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} /include/xpti
86
91
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
You can’t perform that action at this time.
0 commit comments