diff --git a/CMakeLists.txt b/CMakeLists.txt index ac29d484..5682240c 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -89,8 +89,7 @@ install(TARGETS drogon DESTINATION lib) file(GLOB trantor_net_headers "${CMAKE_CURRENT_SOURCE_DIR}/lib/inc/drogon/*.h") install(FILES ${trantor_net_headers} DESTINATION include/drogon) -add_dependencies(drogon trantor) -add_dependencies(drogon makeVersion) +add_dependencies(drogon trantor makeVersion) SET(CONFIG_HEADER "${PROJECT_SOURCE_DIR}/config.h") diff --git a/drogon_ctl/CMakeLists.txt b/drogon_ctl/CMakeLists.txt index 7af8a55b..23eace7a 100755 --- a/drogon_ctl/CMakeLists.txt +++ b/drogon_ctl/CMakeLists.txt @@ -1,4 +1,5 @@ link_libraries(drogon) AUX_SOURCE_DIRECTORY(. SRC_DIR) add_executable(drogon_ctl ${SRC_DIR}) +add_dependencies(drogon_ctl trantor makeVersion) install(TARGETS drogon_ctl DESTINATION bin)