-
Notifications
You must be signed in to change notification settings - Fork 58
/
docopt.cpp-0.6.2-1bl1.src.patch
25 lines (21 loc) · 1.04 KB
/
docopt.cpp-0.6.2-1bl1.src.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- origsrc/docopt.cpp-0.6.2/CMakeLists.txt 2016-12-03 04:12:44.000000000 +0900
+++ src/docopt.cpp-0.6.2/CMakeLists.txt 2016-12-21 17:31:22.547949000 +0900
@@ -9,6 +9,7 @@ include(GNUInstallDirs)
option(WITH_TESTS "Build tests." OFF)
option(WITH_EXAMPLE "Build example." OFF)
option(USE_BOOST_REGEX "Replace std::regex with Boost.Regex" OFF)
+option(WITH_STATIC "Build static." OFF)
#============================================================================
# Internal compiler options
@@ -118,10 +119,13 @@ endif()
set(export_name "docopt-targets")
# Runtime package
-install(TARGETS docopt EXPORT ${export_name} DESTINATION ${CMAKE_INSTALL_LIBDIR})
+install(TARGETS docopt EXPORT ${export_name} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
+set_target_properties(docopt PROPERTIES SOVERSION 0)
# Development package
+if(WITH_STATIC)
install(TARGETS docopt_s EXPORT ${export_name} DESTINATION ${CMAKE_INSTALL_LIBDIR})
+endif()
install(FILES ${docopt_HEADERS} DESTINATION include/docopt)
# CMake Package