]> git.mxchange.org Git - simgear.git/commitdiff
Fix dependency on ‘version’ file.
authorJames Turner <zakalawe@mac.com>
Thu, 9 Jun 2016 10:03:35 +0000 (11:03 +0100)
committerRoland Haeder <roland@mxchange.org>
Sat, 13 Aug 2016 08:21:16 +0000 (10:21 +0200)
CMakeLists.txt

index 42eacba8ffb59577125b1d79a268e5dea879c77a..f586eb24f9fda824446a892373a26de36848f20a 100644 (file)
@@ -38,6 +38,9 @@ project(SimGear)
 file(READ version versionFile)
 string(STRIP ${versionFile} SIMGEAR_VERSION)
 
+# add a dependency on the versino file
+set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS version)
+
 set(FIND_LIBRARY_USE_LIB64_PATHS ON)
 
 # use simgear version also as the SO version (if building SOs)