summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-01-18 19:31:07 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-01-18 19:31:07 +0100
commitde3acc40fabcbf2efc71422bc867c882ffbdaa65 (patch)
treefc2f6230b953b0ff520537791b2c93195cffe5ef
parentaaa96959a1003ee5e34c4c121286b371bc298ade (diff)
cmake: fix otr_module(x SUBDIRS ...)
-rw-r--r--cmake/opentrack-boilerplate.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/cmake/opentrack-boilerplate.cmake b/cmake/opentrack-boilerplate.cmake
index 0db91bd0..fca876ff 100644
--- a/cmake/opentrack-boilerplate.cmake
+++ b/cmake/opentrack-boilerplate.cmake
@@ -136,7 +136,12 @@ function(otr_module n_)
set(n "opentrack-${n_}")
- otr_glob_sources(${n} ${arg_SUBDIRS})
+ if(NOT arg_SUBDIRS)
+ otr_glob_sources(${n} .)
+ else()
+ otr_glob_sources(${n} ${arg_SUBDIRS})
+ endif()
+
list(APPEND ${n}-all ${arg_SOURCES})
if(NOT arg_NO-QT)