Cleanup of merge request 239 , and reverted changes where examples are not built when standalone asio is used

This commit is contained in:
eidheim 2019-06-24 10:15:38 +02:00
commit b0bd7df473

View file

@ -55,7 +55,6 @@ endif()
# If Simple-Web-Server is not a sub-project: # If Simple-Web-Server is not a sub-project:
if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}") if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")
if(NOT USE_STANDALONE_ASIO)
add_executable(http_examples http_examples.cpp) add_executable(http_examples http_examples.cpp)
target_link_libraries(http_examples simple-web-server) target_link_libraries(http_examples simple-web-server)
@ -68,7 +67,6 @@ if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")
target_link_libraries(https_examples ${Boost_LIBRARIES}) target_link_libraries(https_examples ${Boost_LIBRARIES})
target_include_directories(https_examples PRIVATE ${Boost_INCLUDE_DIR}) target_include_directories(https_examples PRIVATE ${Boost_INCLUDE_DIR})
endif() endif()
endif()
set(BUILD_TESTING ON) set(BUILD_TESTING ON)