Fix a configuration error when building drogon_ctl (#1544)
This commit is contained in:
parent
4f066258f2
commit
02742e4518
|
@ -19,7 +19,11 @@ add_executable(_drogon_ctl
|
||||||
target_link_libraries(_drogon_ctl ${PROJECT_NAME})
|
target_link_libraries(_drogon_ctl ${PROJECT_NAME})
|
||||||
if (WIN32 AND BUILD_SHARED_LIBS)
|
if (WIN32 AND BUILD_SHARED_LIBS)
|
||||||
set(DROGON_FILE $<TARGET_FILE:drogon>)
|
set(DROGON_FILE $<TARGET_FILE:drogon>)
|
||||||
set(TRANTOR_FILE $<TARGET_FILE:trantor>)
|
if (USE_SUBMODULE)
|
||||||
|
set(TRANTOR_FILE $<TARGET_FILE:trantor>)
|
||||||
|
else()
|
||||||
|
set(TRANTOR_FILE $<TARGET_FILE:Trantor::Trantor>)
|
||||||
|
endif()
|
||||||
add_custom_command(TARGET _drogon_ctl POST_BUILD
|
add_custom_command(TARGET _drogon_ctl POST_BUILD
|
||||||
COMMAND ${CMAKE_COMMAND}
|
COMMAND ${CMAKE_COMMAND}
|
||||||
-DCTL_FILE=${DROGON_FILE}
|
-DCTL_FILE=${DROGON_FILE}
|
||||||
|
|
Loading…
Reference in New Issue