Merge pull request #179 from klimkin/hotfix/fix-install-coz-option

Fix an issue libcoz not picking-up INSTALL_COZ option
This commit is contained in:
Emery Berger 2021-03-23 00:19:49 -04:00 committed by GitHub
commit 6dd3c3f9cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,6 +14,8 @@ find_package(libelfin REQUIRED)
add_compile_options(-gdwarf-3)
option(INSTALL_COZ "Enable installation of coz. (Projects embedding coz may want to turn this OFF.)" ON)
add_subdirectory(libcoz)
option(BUILD_BENCHMARKS "Build benchmarks" OFF)
@ -26,7 +28,6 @@ if(BUILD_BENCHMARKS)
add_subdirectory(benchmarks)
endif()
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)