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 da0962a commit a9535a7
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 @@ -65,7 +65,7 @@ endif()
target_include_directories(nanothread
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)

target_compile_definitions(nanothread PRIVATE -DNANOTHREAD_BUILD=1)
set_target_properties(nanothread PROPERTIES INTERPROCEDURAL_OPTIMIZATION_RELEASE TRUE)
Expand All @@ -80,27 +80,27 @@ install(
FILES
nanothreadConfig.cmake
DESTINATION
lib/cmake/nanothread
${CMAKE_INSTALL_LIBDIR}/cmake/nanothread
)
install(
TARGETS
nanothread
EXPORT
nanothreadTargets
INCLUDES DESTINATION
include
${CMAKE_INSTALL_INCLUDEDIR}
)
install(
DIRECTORY
include/nanothread
DESTINATION
include
${CMAKE_INSTALL_INCLUDEDIR}
)
install(
EXPORT
nanothreadTargets
FILE
nanothreadTargets.cmake
DESTINATION
lib/cmake/nanothread
${CMAKE_INSTALL_LIBDIR}/cmake/nanothread
)

0 comments on commit a9535a7

Please sign in to comment.