Skip to content

Commit ffe04b2

Browse files
author
Connor Baker
committed
cmake: use relative path CMAKE_* variables
1 parent aad341e commit ffe04b2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ target_compile_definitions(drjit-core PRIVATE -DLZ4LIB_VISIBILITY=)
189189
target_include_directories(drjit-core
190190
PUBLIC
191191
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
192-
$<INSTALL_INTERFACE:include>)
192+
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
193193

194194
target_compile_definitions(drjit-core PRIVATE -DDRJIT_BUILD=1)
195195

@@ -250,10 +250,10 @@ if (DRJIT_ENABLE_TESTS)
250250
endif()
251251

252252
configure_file(drjit-core-config.cmake "${CMAKE_CURRENT_BINARY_DIR}/drjit-core/drjit-core-config.cmake")
253-
install(TARGETS drjit-core EXPORT drjit-core-targets INCLUDES DESTINATION include)
254-
install(DIRECTORY include/drjit-core DESTINATION include)
255-
install(FILES drjit-core-config.cmake DESTINATION lib/cmake/drjit-core)
253+
install(TARGETS drjit-core EXPORT drjit-core-targets INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
254+
install(DIRECTORY include/drjit-core DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
255+
install(FILES drjit-core-config.cmake DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/drjit-core)
256256
install(
257257
EXPORT drjit-core-targets
258258
FILE drjit-core-targets.cmake
259-
DESTINATION lib/cmake/drjit-core)
259+
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/drjit-core)

0 commit comments

Comments
 (0)