summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2020-04-30 18:42:02 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2020-04-30 18:42:02 -0400
commit8ef7db6a4c6160e9746464c5061c4f030a76015e (patch)
treee5f167b0ecbec6121e74e59e29448aa4ae16ac4d /src
parent4b265a5cd381168f73c156227c473a0ac55bb476 (diff)
appveyor does not build modorganizer in its standard location, so use DEPENDENCIES_DIR to find cmake_common
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index c43ebf10..6e454fc1 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1,5 +1,13 @@
cmake_minimum_required(VERSION 3.16)
-include(../../cmake_common/src.cmake)
+
+# appveyor does not build modorganizer in its standard location, so use
+# DEPENDENCIES_DIR to find cmake_common
+if(DEFINED DEPENDENCIES_DIR)
+ include(${DEPENDENCIES_DIR}/modorganizer_super/cmake_common/src.cmake)
+else()
+ include(../cmake_common/src.cmake)
+endif()
+
add_filter(NAME src/application GROUPS
iuserinterface