File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,9 @@ set(CPPREST_EXCLUDE_BROTLI ON CACHE BOOL "Exclude Brotli compression functionali
2222set (CPPREST_EXPORT_DIR cmake/cpprestsdk CACHE STRING "Directory to install CMake config files." )
2323set (CPPREST_INSTALL_HEADERS ON CACHE BOOL "Install header files." )
2424set (CPPREST_INSTALL ON CACHE BOOL "Add install commands." )
25+ set (CPPREST_BUILD_SHARED_LIBS OFF CACHE BOOL "Build shared libraries." )
2526
26- if (IOS OR ANDROID)
27- set (BUILD_SHARED_LIBS OFF CACHE BOOL "Build shared libraries" )
28- else ()
29- set (BUILD_SHARED_LIBS ON CACHE BOOL "Build shared libraries" )
30- endif ()
27+ set (BUILD_SHARED_LIBS ${CPPREST_BUILD_SHARED_LIBS} )
3128
3229if (IOS OR ANDROID OR WINDOWS_STORE OR WINDOWS_PHONE)
3330 set (BUILD_TESTS OFF CACHE BOOL "Build tests." )
You can’t perform that action at this time.
0 commit comments