From 02742e4518861e9357b9525ea78cae0bbb7f5471 Mon Sep 17 00:00:00 2001 From: An Tao Date: Fri, 24 Mar 2023 10:20:25 +0800 Subject: [PATCH] Fix a configuration error when building drogon_ctl (#1544) --- drogon_ctl/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drogon_ctl/CMakeLists.txt b/drogon_ctl/CMakeLists.txt index 9f2f1e74..249c453d 100755 --- a/drogon_ctl/CMakeLists.txt +++ b/drogon_ctl/CMakeLists.txt @@ -19,7 +19,11 @@ add_executable(_drogon_ctl target_link_libraries(_drogon_ctl ${PROJECT_NAME}) if (WIN32 AND BUILD_SHARED_LIBS) set(DROGON_FILE $) - set(TRANTOR_FILE $) + if (USE_SUBMODULE) + set(TRANTOR_FILE $) + else() + set(TRANTOR_FILE $) + endif() add_custom_command(TARGET _drogon_ctl POST_BUILD COMMAND ${CMAKE_COMMAND} -DCTL_FILE=${DROGON_FILE}