Loading CMakeLists.txt +5 −7 Original line number Diff line number Diff line Loading @@ -31,8 +31,8 @@ if(USE_STANDALONE_ASIO) target_include_directories(simple-web-server SYSTEM INTERFACE ${ASIO_PATH}) endif() else() find_package(Boost 1.53.0 COMPONENTS system thread REQUIRED) target_link_libraries(simple-web-server INTERFACE Boost::boost Boost::system Boost::thread) find_package(Boost 1.53.0 COMPONENTS system REQUIRED) target_link_libraries(simple-web-server INTERFACE Boost::boost Boost::system) if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9) target_compile_definitions(simple-web-server INTERFACE USE_BOOST_REGEX) find_package(Boost 1.53.0 COMPONENTS regex REQUIRED) Loading Loading @@ -69,15 +69,13 @@ if(CMAKE_SOURCE_DIR STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}") add_compile_options(/W1) endif() find_package(Boost 1.53.0 COMPONENTS system thread filesystem) find_package(Boost 1.53.0 COMPONENTS filesystem) if(Boost_FOUND) add_executable(http_examples http_examples.cpp) target_link_libraries(http_examples simple-web-server) target_link_libraries(http_examples Boost::boost Boost::system Boost::thread Boost::filesystem) target_link_libraries(http_examples simple-web-server Boost::boost Boost::filesystem) if(OPENSSL_FOUND) add_executable(https_examples https_examples.cpp) target_link_libraries(https_examples simple-web-server) target_link_libraries(https_examples Boost::boost Boost::system Boost::thread Boost::filesystem) target_link_libraries(https_examples simple-web-server Boost::boost Boost::filesystem) endif() endif() Loading Loading
CMakeLists.txt +5 −7 Original line number Diff line number Diff line Loading @@ -31,8 +31,8 @@ if(USE_STANDALONE_ASIO) target_include_directories(simple-web-server SYSTEM INTERFACE ${ASIO_PATH}) endif() else() find_package(Boost 1.53.0 COMPONENTS system thread REQUIRED) target_link_libraries(simple-web-server INTERFACE Boost::boost Boost::system Boost::thread) find_package(Boost 1.53.0 COMPONENTS system REQUIRED) target_link_libraries(simple-web-server INTERFACE Boost::boost Boost::system) if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9) target_compile_definitions(simple-web-server INTERFACE USE_BOOST_REGEX) find_package(Boost 1.53.0 COMPONENTS regex REQUIRED) Loading Loading @@ -69,15 +69,13 @@ if(CMAKE_SOURCE_DIR STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}") add_compile_options(/W1) endif() find_package(Boost 1.53.0 COMPONENTS system thread filesystem) find_package(Boost 1.53.0 COMPONENTS filesystem) if(Boost_FOUND) add_executable(http_examples http_examples.cpp) target_link_libraries(http_examples simple-web-server) target_link_libraries(http_examples Boost::boost Boost::system Boost::thread Boost::filesystem) target_link_libraries(http_examples simple-web-server Boost::boost Boost::filesystem) if(OPENSSL_FOUND) add_executable(https_examples https_examples.cpp) target_link_libraries(https_examples simple-web-server) target_link_libraries(https_examples Boost::boost Boost::system Boost::thread Boost::filesystem) target_link_libraries(https_examples simple-web-server Boost::boost Boost::filesystem) endif() endif() Loading