Skip to content

Commit 414a9d6

Browse files
Do not install header files which are copied during building steps
Installing them updates time-stamps on the files, and incremental rebuild is always rebuilding, even though no files are changed. With this change repeated invocation of `python scripts/build_locally.py` is effectively a no-op.
1 parent 80f4f30 commit 414a9d6

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

CMakeLists.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.21...3.27 FATAL_ERROR)
22

33
project(dpctl
4-
VERSION 0.15
4+
VERSION 0.17
55
LANGUAGES CXX
66
DESCRIPTION "Python interface for XPU programming"
77
)
@@ -47,11 +47,6 @@ endif()
4747

4848
add_subdirectory(libsyclinterface)
4949

50-
file(GLOB _dpctl_capi_headers dpctl/apis/include/*.h*)
51-
install(FILES ${_dpctl_capi_headers}
52-
DESTINATION dpctl/include
53-
)
54-
5550
# Define CMAKE_INSTALL_xxx: LIBDIR, INCLUDEDIR
5651
include(GNUInstallDirs)
5752

libsyclinterface/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ set_target_properties(DPCTLSyclInterface
280280

281281
if (SKBUILD)
282282
set(_lib_destination dpctl)
283-
set(_include_destination dpctl/include/syclinterface)
283+
set(_include_destination ${CMAKE_INSTALL_PREFIX}/unused)
284284
else()
285285
set(_lib_destination ${CMAKE_INSTALL_PREFIX}/lib)
286286
set(_include_destination ${CMAKE_INSTALL_PREFIX}/include)

0 commit comments

Comments
 (0)