Skip to content

Commit fda3820

Browse files
authored
Merge pull request #40 from sergeyvfx/skip_install_baked
Skip installation of bvh_build_array.h
2 parents 396b741 + 2291bc2 commit fda3820

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

CMakeLists.txt

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -574,8 +574,10 @@ file(GLOB HIPRT_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/hiprt/*.h")
574574
install(FILES ${HIPRT_HEADERS}
575575
DESTINATION include/hiprt)
576576

577-
# add header files from implementation folder
577+
# Add header files from implementation folder.
578+
# Ignore header which is generated by the baking tool and is only needed by the build process.
578579
file(GLOB HIPRT_IMPL_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/hiprt/impl/*.h")
580+
list(REMOVE_ITEM HIPRT_IMPL_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/hiprt/impl/bvh_build_array.h")
579581
install(FILES ${HIPRT_IMPL_HEADERS}
580582
DESTINATION include/hiprt/impl)
581583

@@ -590,12 +592,6 @@ if(PRECOMPILE AND NOT BAKE_COMPILED_KERNEL)
590592
DESTINATION bin)
591593
endif()
592594

593-
# Baked headers.
594-
if(BAKE_COMPILED_KERNEL)
595-
install(FILES ${KERNEL_HIPRT_H}
596-
DESTINATION include/hiprt/impl)
597-
endif()
598-
599595
# Project: Unit Test
600596
if(NOT NO_UNITTEST)
601597

0 commit comments

Comments
 (0)