List:Commits« Previous MessageNext Message »
From:Magnus Blåudd Date:November 24 2010 10:38am
Subject:bzr commit into mysql-5.5-bugteam branch (magnus.blaudd:3136) WL#5665
View as plain text  
#At file:///home/msvensson/mysql/5.5-bugteam/ based on revid:sergey.glukhov@strippedysxw

 3136 Magnus Blåudd	2010-11-24
      WL#5665: Removal of the autotools-based build system
       - Make the cmake files depend on VERSION, causing
         cmake rerun when VERSION changes

    modified:
      cmake/mysql_version.cmake
=== modified file 'cmake/mysql_version.cmake'
--- a/cmake/mysql_version.cmake	2010-11-20 22:56:09 +0000
+++ b/cmake/mysql_version.cmake	2010-11-24 10:37:59 +0000
@@ -21,17 +21,21 @@ SET(SHARED_LIB_MAJOR_VERSION "16")
 SET(PROTOCOL_VERSION "10")
 SET(DOT_FRM_VERSION "6")
 
+# Generate "something" to trigger cmake rerun when VERSION changes
+CONFIGURE_FILE(
+  ${CMAKE_SOURCE_DIR}/VERSION
+  ${CMAKE_BINARY_DIR}/VERSION.dep
+)
+
 # Read value for a variable from VERSION.
 
 MACRO(MYSQL_GET_CONFIG_VALUE keyword var)
  IF(NOT ${var})
-   IF (EXISTS ${CMAKE_SOURCE_DIR}/VERSION)
-     FILE (STRINGS ${CMAKE_SOURCE_DIR}/VERSION str REGEX "^[ ]*${keyword}=")
-    IF(str)
-      STRING(REPLACE "${keyword}=" "" str ${str})
-      STRING(REGEX REPLACE  "[ ].*" ""  str "${str}")
-      SET(${var} ${str})
-    ENDIF()
+   FILE (STRINGS ${CMAKE_SOURCE_DIR}/VERSION str REGEX "^[ ]*${keyword}=")
+   IF(str)
+     STRING(REPLACE "${keyword}=" "" str ${str})
+     STRING(REGEX REPLACE  "[ ].*" ""  str "${str}")
+     SET(${var} ${str})
    ENDIF()
  ENDIF()
 ENDMACRO()

Attachment: [text/bzr-bundle] bzr/magnus.blaudd@sun.com-20101124103759-3fkns6ui3t4b9a5u.bundle
Thread
bzr commit into mysql-5.5-bugteam branch (magnus.blaudd:3136) WL#5665Magnus Blåudd24 Nov