Skip to content

Commit

Permalink
cmake: use relative path CMAKE_* variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Connor Baker committed Jan 31, 2024
1 parent aad341e commit ffe04b2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ target_compile_definitions(drjit-core PRIVATE -DLZ4LIB_VISIBILITY=)
target_include_directories(drjit-core
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)

target_compile_definitions(drjit-core PRIVATE -DDRJIT_BUILD=1)

Expand Down Expand Up @@ -250,10 +250,10 @@ if (DRJIT_ENABLE_TESTS)
endif()

configure_file(drjit-core-config.cmake "${CMAKE_CURRENT_BINARY_DIR}/drjit-core/drjit-core-config.cmake")
install(TARGETS drjit-core EXPORT drjit-core-targets INCLUDES DESTINATION include)
install(DIRECTORY include/drjit-core DESTINATION include)
install(FILES drjit-core-config.cmake DESTINATION lib/cmake/drjit-core)
install(TARGETS drjit-core EXPORT drjit-core-targets INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
install(DIRECTORY include/drjit-core DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
install(FILES drjit-core-config.cmake DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/drjit-core)
install(
EXPORT drjit-core-targets
FILE drjit-core-targets.cmake
DESTINATION lib/cmake/drjit-core)
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/drjit-core)

0 comments on commit ffe04b2

Please sign in to comment.