[Orxonox-commit 6570] r11210 - code/trunk/cmake/tools

landauf at orxonox.net landauf at orxonox.net
Thu Jun 2 22:27:16 CEST 2016


Author: landauf
Date: 2016-06-02 22:27:15 +0200 (Thu, 02 Jun 2016)
New Revision: 11210

Modified:
   code/trunk/cmake/tools/DetermineVersion.cmake
Log:
COMPARE_VERSION_STRINGS resulted in strange error when version-header was not found. fixed this by setting version-variable to 'NOTFOUND' in this case.

Modified: code/trunk/cmake/tools/DetermineVersion.cmake
===================================================================
--- code/trunk/cmake/tools/DetermineVersion.cmake	2016-05-30 08:21:29 UTC (rev 11209)
+++ code/trunk/cmake/tools/DetermineVersion.cmake	2016-06-02 20:27:15 UTC (rev 11210)
@@ -54,5 +54,7 @@
       ENDIF()
     ENDFOREACH(_part)
     SET(${_name}_VERSION "${${_name}_VERSION}" PARENT_SCOPE)
+  ELSE(EXISTS ${_file})
+    SET(${_name}_VERSION "NOTFOUND" PARENT_SCOPE)
   ENDIF(EXISTS ${_file})
 ENDFUNCTION(DETERMINE_VERSION)




More information about the Orxonox-commit mailing list