File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,12 @@ endif()
8
8
project (shinysocks
9
9
DESCRIPTION "Socks Proxy server"
10
10
HOMEPAGE_URL https://github.com/jgaa/shinysocks
11
- VERSION 1.3.5
11
+ VERSION 1.4.0
12
12
LANGUAGES CXX
13
13
)
14
14
15
+ option (USE_STATIC_BOOST "Link Boost statically" ON )
16
+
15
17
add_definitions (-DSHINYSOCKS_VERSION=\" ${CMAKE_PROJECT_VERSION} \" )
16
18
17
19
include (cmake/3rdparty.cmake )
@@ -22,17 +24,19 @@ if(NOT DEFINED USE_BOOST_VERSION)
22
24
set (USE_BOOST_VERSION 1.69 )
23
25
endif ()
24
26
27
+ if (USE_STATIC_BOOST )
28
+ set (Boost_USE_STATIC_LIBS ON )
29
+ endif ()
30
+
25
31
find_package (Boost ${USE_BOOST_VERSION} REQUIRED COMPONENTS
26
32
system
27
33
program_options
28
34
serialization
29
35
coroutine
30
36
context
31
37
)
32
-
33
38
add_executable (${PROJECT_NAME} Manager.cpp Listener.cpp Proxy.cpp main.cpp shinysocks.h logging.h )
34
39
add_dependencies (${PROJECT_NAME} logfault )
35
-
36
40
include_directories (${Boost_INCLUDE_DIR} )
37
41
38
42
set_target_properties (${PROJECT_NAME}
You can’t perform that action at this time.
0 commit comments