Merge branch 'fix_crosscompiling' into 'master'
Replace CHECK_INCLUDE_FILE_CXX() with CMake find_file() See merge request eidheim/Simple-Web-Server!231
This commit is contained in:
commit
3b2c84a9bc
1 changed files with 2 additions and 3 deletions
|
|
@ -22,9 +22,8 @@ target_link_libraries(simple-web-server INTERFACE ${CMAKE_THREAD_LIBS_INIT})
|
|||
# Remove Boost system, thread, regex components; use Boost::<component> aliases; remove Boost target_include_directories
|
||||
if(USE_STANDALONE_ASIO)
|
||||
target_compile_definitions(simple-web-server INTERFACE USE_STANDALONE_ASIO)
|
||||
include(CheckIncludeFileCXX)
|
||||
CHECK_INCLUDE_FILE_CXX(asio.hpp HAVE_ASIO)
|
||||
if(NOT HAVE_ASIO)
|
||||
find_file(ASIO_HEADER asio.hpp)
|
||||
if(NOT ASIO_HEADER)
|
||||
message(FATAL_ERROR "Standalone Asio not found")
|
||||
endif()
|
||||
else()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue