commit ea132048da8715c345b127cd8d32535286eb0627
parent ec5bb310211f1e25dfa674412de899e5d52b9c84
Author: Alexandre BIQUE <bique.alexandre@gmail.com>
Date: Mon, 27 Dec 2021 20:26:31 +0100
Make it optional to install clap headers
This is useful when used in a submodule
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
@@ -7,7 +7,7 @@ project(CLAP C CXX)
add_library(clap-core INTERFACE)
target_include_directories(clap-core INTERFACE include)
-install(DIRECTORY include DESTINATION "${CMAKE_INSTALL_PREFIX}")
+install(DIRECTORY include DESTINATION "${CMAKE_INSTALL_PREFIX}" OPTIONAL EXCLUDE_FROM_ALL)
add_executable(clap-compile-test-c EXCLUDE_FROM_ALL src/main.c)
target_link_libraries(clap-compile-test-c clap-core)