From 6cce85b3a34a4a27d678abf0b4c005a38afd1738 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 17 Oct 2020 18:38:17 +0300 Subject: cmake: no more target_include_directories hacks --- server/main/CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'server/main/CMakeLists.txt') 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 "$" DESTINATION bin OPTIONAL) -- cgit v1.2.3