mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-16 04:59:07 +08:00
26 lines
1.2 KiB
Diff
26 lines
1.2 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 88026025..d6f180fb 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -13,6 +13,7 @@ option(BUILD_DOC "Build Doxygen documentation" OFF)
|
|
option(BUILD_BROTLI "Build Brotli" ON)
|
|
option(BUILD_YAML_CONFIG "Build yaml config" ON)
|
|
option(USE_SUBMODULE "Use trantor as a submodule" ON)
|
|
+set(DROGON_CTL_TOOL "" CACHE STRING "drogon_ctl tool executable when doing cross builds")
|
|
|
|
include(CMakeDependentOption)
|
|
CMAKE_DEPENDENT_OPTION(BUILD_POSTGRESQL "Build with postgresql support" ON "BUILD_ORM" OFF)
|
|
diff --git a/drogon_ctl/CMakeLists.txt b/drogon_ctl/CMakeLists.txt
|
|
index 249c453d..16b346ea 100755
|
|
--- a/drogon_ctl/CMakeLists.txt
|
|
+++ b/drogon_ctl/CMakeLists.txt
|
|
@@ -43,7 +43,7 @@ foreach(cspFile ${SCP_LIST})
|
|
get_filename_component(classname ${cspFile} NAME_WE)
|
|
message(STATUS "view classname:" ${classname})
|
|
add_custom_command(OUTPUT ${classname}.h ${classname}.cc
|
|
- COMMAND $<TARGET_FILE:_drogon_ctl>
|
|
+ COMMAND $<IF:$<BOOL:${DROGON_CTL_TOOL}>,${DROGON_CTL_TOOL},$<TARGET_FILE:_drogon_ctl>>
|
|
ARGS
|
|
create
|
|
view
|