diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-10-17 18:38:17 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-10-17 18:38:17 +0300 |
commit | 6cce85b3a34a4a27d678abf0b4c005a38afd1738 (patch) | |
tree | f0c699f6f92b59e7e6613a30c8dd0e3ce3585540 /server/main/CMakeLists.txt | |
parent | update cmake-common (diff) | |
download | math-server-6cce85b3a34a4a27d678abf0b4c005a38afd1738.tar.gz math-server-6cce85b3a34a4a27d678abf0b4c005a38afd1738.zip |
cmake: no more target_include_directories hacks
Diffstat (limited to 'server/main/CMakeLists.txt')
-rw-r--r-- | server/main/CMakeLists.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/server/main/CMakeLists.txt b/server/main/CMakeLists.txt index 39fe0b4..5457c7b 100644 --- a/server/main/CMakeLists.txt +++ b/server/main/CMakeLists.txt @@ -3,8 +3,12 @@ option(DEBUG_ASIO "enable debug output for Boost.Asio" OFF) file(GLOB server_cpp "*.cpp") file(GLOB server_hpp "*.hpp") add_executable(server ${server_cpp} ${server_hpp}) -target_link_libraries(server PRIVATE common parser) set_target_properties(server PROPERTIES OUTPUT_NAME math-server) +if(DEBUG_ASIO) + target_compile_definitions(server PRIVATE BOOST_ASIO_ENABLE_HANDLER_TRACKING) +endif() + +target_link_libraries(server PRIVATE common parser) set(CMAKE_THREAD_PREFER_PTHREAD ON) set(THREADS_PREFER_PTHREAD_FLAG ON) @@ -17,10 +21,6 @@ target_link_libraries(server PRIVATE Boost::filesystem Boost::program_options) -if(DEBUG_ASIO) - target_compile_definitions(server PRIVATE BOOST_ASIO_ENABLE_HANDLER_TRACKING) -endif() - install(TARGETS server RUNTIME DESTINATION bin) if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") install(FILES "$<TARGET_PDB_FILE:server>" DESTINATION bin OPTIONAL) |