Fixes #287: fixed STREQUAL expressions in CMakeLists.txt
This commit is contained in:
parent
4d3ca3c1c0
commit
ec593ebd93
1 changed files with 2 additions and 2 deletions
|
|
@ -36,7 +36,7 @@ else()
|
||||||
find_package(Boost 1.53.0 COMPONENTS system thread REQUIRED)
|
find_package(Boost 1.53.0 COMPONENTS system thread REQUIRED)
|
||||||
target_link_libraries(simple-web-server INTERFACE ${Boost_LIBRARIES})
|
target_link_libraries(simple-web-server INTERFACE ${Boost_LIBRARIES})
|
||||||
target_include_directories(simple-web-server INTERFACE ${Boost_INCLUDE_DIR})
|
target_include_directories(simple-web-server INTERFACE ${Boost_INCLUDE_DIR})
|
||||||
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9)
|
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)
|
target_compile_definitions(simple-web-server INTERFACE USE_BOOST_REGEX)
|
||||||
find_package(Boost 1.53.0 COMPONENTS regex REQUIRED)
|
find_package(Boost 1.53.0 COMPONENTS regex REQUIRED)
|
||||||
target_link_libraries(simple-web-server INTERFACE ${Boost_LIBRARIES})
|
target_link_libraries(simple-web-server INTERFACE ${Boost_LIBRARIES})
|
||||||
|
|
@ -60,7 +60,7 @@ if(OPENSSL_FOUND)
|
||||||
endif()
|
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}")
|
||||||
find_package(Boost 1.53.0 COMPONENTS system thread filesystem)
|
find_package(Boost 1.53.0 COMPONENTS system thread filesystem)
|
||||||
if(Boost_FOUND)
|
if(Boost_FOUND)
|
||||||
add_executable(http_examples http_examples.cpp)
|
add_executable(http_examples http_examples.cpp)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue