mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 01:41:48 +08:00
26 lines
1.2 KiB
Diff
26 lines
1.2 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index c36d29a2..437e5d73 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -14,6 +14,7 @@ option(BUILD_BROTLI "Build Brotli" ON)
|
|
option(BUILD_YAML_CONFIG "Build yaml config" ON)
|
|
option(USE_SUBMODULE "Use trantor as a submodule" ON)
|
|
option(USE_STATIC_LIBS_ONLY "Use only static libraries as dependencies" OFF)
|
|
+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 04b790d3..854f7139 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
|