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 $ + COMMAND $,${DROGON_CTL_TOOL},$> ARGS create view