We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40bcc2d commit 40cd59cCopy full SHA for 40cd59c
CMakeLists.txt
@@ -4,13 +4,17 @@ project(subprocess VERSION 0.0.1 LANGUAGES CXX)
4
set(CMAKE_CXX_STANDARD 11 CACHE STRING "C++ standard to use")
5
option(EXPORT_COMPILE_COMMANDS "create clang compile database" ON)
6
option(SUBPROCESS_TESTS "enable subprocess tests" OFF)
7
+option(SUBPROCESS_INSTALL "enable subprocess install" OFF)
8
9
find_package(Threads REQUIRED)
10
11
add_library(subprocess INTERFACE)
12
target_link_libraries(subprocess INTERFACE Threads::Threads)
13
target_include_directories(subprocess INTERFACE . )
-install(FILES subprocess.hpp DESTINATION include/cpp-subprocess/)
14
+
15
+if(SUBPROCESS_INSTALL)
16
+ install(FILES subprocess.hpp DESTINATION include/cpp-subprocess/)
17
+endif()
18
19
if(SUBPROCESS_TESTS)
20
include(CTest)
0 commit comments