mirror of
https://github.com/plasma-umass/coz.git
synced 2024-09-11 04:55:25 +03:00
Merge pull request #183 from stefanbuettner/fix-cmake-build-GNUInstallDirs
Fix cmake build with INSTALL_COZ=ON
This commit is contained in:
commit
47a3fcaa5e
@ -16,6 +16,13 @@ add_compile_options(-gdwarf-3)
|
||||
|
||||
option(INSTALL_COZ "Enable installation of coz. (Projects embedding coz may want to turn this OFF.)" ON)
|
||||
|
||||
if(INSTALL_COZ)
|
||||
include(GNUInstallDirs)
|
||||
install(PROGRAMS coz DESTINATION bin)
|
||||
install(FILES LICENSE.md DESTINATION licenses)
|
||||
install(FILES cmake/coz-profilerConfig.cmake DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake)
|
||||
endif()
|
||||
|
||||
add_subdirectory(libcoz)
|
||||
|
||||
option(BUILD_BENCHMARKS "Build benchmarks" OFF)
|
||||
@ -28,9 +35,3 @@ if(BUILD_BENCHMARKS)
|
||||
add_subdirectory(benchmarks)
|
||||
endif()
|
||||
|
||||
if(INSTALL_COZ)
|
||||
include(GNUInstallDirs)
|
||||
install(PROGRAMS coz DESTINATION bin)
|
||||
install(FILES LICENSE.md DESTINATION licenses)
|
||||
install(FILES cmake/coz-profilerConfig.cmake DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake)
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user