summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2021-12-20 04:58:39 +0100
committerStanislaw Halik <sthalik@misaki.pl>2021-12-20 04:58:39 +0100
commit6e74fd2fca860371289a549422b608ff48fd2f30 (patch)
tree5aba04f2becf33c2bb54a5c3113aaa32c4f65e53 /cmake
parenta5db369ab9ad240189cd12a23df01274d76cde55 (diff)
cmake: add CONFIGURE_DEPENDS
Diffstat (limited to 'cmake')
-rw-r--r--cmake/opentrack-boilerplate.cmake14
-rw-r--r--cmake/opentrack-variant.cmake2
2 files changed, 8 insertions, 8 deletions
diff --git a/cmake/opentrack-boilerplate.cmake b/cmake/opentrack-boilerplate.cmake
index f074c79b..b7a5e295 100644
--- a/cmake/opentrack-boilerplate.cmake
+++ b/cmake/opentrack-boilerplate.cmake
@@ -44,15 +44,15 @@ function(otr_glob_sources var)
endforeach()
foreach(dir ${ARGN})
set(dir "${basedir}/${dir}")
- file(GLOB cxx "${dir}/*.cpp")
- file(GLOB cc "${dir}/*.c")
- file(GLOB hh "${dir}/*.h" "${dir}/*.hpp" "${dir}/*.inc")
- file(GLOB res "${dir}/*.rc")
+ file(GLOB cxx CONFIGURE_DEPENDS "${dir}/*.cpp")
+ file(GLOB cc CONFIGURE_DEPENDS "${dir}/*.c")
+ file(GLOB hh CONFIGURE_DEPENDS "${dir}/*.h" "${dir}/*.hpp" "${dir}/*.inc")
+ file(GLOB res CONFIGURE_DEPENDS "${dir}/*.rc")
foreach(f res)
set_source_files_properties(${f} PROPERTIES LANGUAGE RC)
endforeach()
- file(GLOB ui "${dir}/*.ui")
- file(GLOB rc "${dir}/*.qrc")
+ file(GLOB ui CONFIGURE_DEPENDS "${dir}/*.ui")
+ file(GLOB rc CONFIGURE_DEPENDS "${dir}/*.qrc")
set(all ${cc} ${cxx} ${hh} ${res})
foreach(i ui rc res cc cxx hh all)
set(${var}-${i} "${${var}-${i}}" ${${i}} PARENT_SCOPE)
@@ -265,7 +265,7 @@ function(otr_add_target_dirs var)
list(APPEND globs "${k}/CMakeLists.txt")
endforeach()
set(projects "")
- file(GLOB projects ${globs})
+ file(GLOB projects CONFIGURE_DEPENDS ${globs})
list(SORT projects)
set("${var}" "${projects}" PARENT_SCOPE)
endfunction()
diff --git a/cmake/opentrack-variant.cmake b/cmake/opentrack-variant.cmake
index 2cf39fcd..9fb23f0a 100644
--- a/cmake/opentrack-variant.cmake
+++ b/cmake/opentrack-variant.cmake
@@ -1,7 +1,7 @@
include_guard(GLOBAL)
function(otr_dist_select_variant)
- file(GLOB variants "variant/*")
+ file(GLOB variants CONFIGURE_DEPENDS "variant/*")
set(variant-list "")