[CMake] CMake 2.4.1 available for download

John Biddiscombe biddisco at cscs.ch
Tue May 2 09:32:21 EDT 2006


> Seems to be completely broken on windows build.

OK. It's because my Qt is reporting version number
"4.1.0-rc1" and not "4.1.0" and the script uses the wrong variable to do
the comparison in findQt4

here's the patch to fix it.

Unfortunately, I've just noticed that vtkConfigQt.cmake exports paths
with windows backslashes and anything that uses the Use file gets cmake
errors about invalid escape \Q etc etc. Manaully edited that one for now.

Also the Command that 2.4 uses that 2.3 fails with
   FILE(TO_CMAKE_PATH "$ENV{SYSTEMROOT}" SYSTEMROOT)


JB


-------------- next part --------------
Index: Modules/FindQt4.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/FindQt4.cmake,v
retrieving revision 1.25.2.2
diff -u -r1.25.2.2 FindQt4.cmake
--- Modules/FindQt4.cmake	29 Apr 2006 15:49:19 -0000	1.25.2.2
+++ Modules/FindQt4.cmake	2 May 2006 11:42:25 -0000
@@ -211,10 +211,10 @@
          MESSAGE( FATAL_ERROR "Invalid Qt version string given: \"${QT_MIN_VERSION}\", major version 4 is required, e.g. \"4.0.1\"")
       ENDIF (NOT req_qt_major_vers EQUAL 4)
    
-      # and now the version string given by qmake
-      STRING(REGEX REPLACE "([0-9]+)\\.[0-9]+\\.[0-9]+" "\\1" found_qt_major_vers "${QTVERSION}")
-      STRING(REGEX REPLACE "[0-9]+\\.([0-9])+\\.[0-9]+" "\\1" found_qt_minor_vers "${QTVERSION}")
-      STRING(REGEX REPLACE "[0-9]+\\.[0-9]+\\.([0-9]+)" "\\1" found_qt_patch_vers "${QTVERSION}")
+      # and now the version string given by qmake
+      STRING(REGEX REPLACE "([0-9]+)\\.[0-9]+\\.[0-9]+" "\\1" found_qt_major_vers "${qt_version_tmp}")
+      STRING(REGEX REPLACE "[0-9]+\\.([0-9])+\\.[0-9]+" "\\1" found_qt_minor_vers "${qt_version_tmp}")
+      STRING(REGEX REPLACE "[0-9]+\\.[0-9]+\\.([0-9]+)" "\\1" found_qt_patch_vers "${qt_version_tmp}")
    
       # compute an overall version number which can be compared at once
       MATH(EXPR req_vers "${req_qt_major_vers}*10000 + ${req_qt_minor_vers}*100 + ${req_qt_patch_vers}")



More information about the CMake mailing list