--- a/hedgewars/CMakeLists.txt Mon Oct 09 18:26:44 2006 +0000
+++ b/hedgewars/CMakeLists.txt Tue Oct 10 18:03:48 2006 +0000
@@ -24,12 +24,12 @@
string(REGEX REPLACE "[0-9]+\\.([0-9])+\\.[0-9]+" "\\1" fpc_vers_minor "${fpc_version}")
string(REGEX REPLACE "[0-9]+\\.[0-9]+\\.([0-9]+)" "\\1" fpc_vers_patch "${fpc_version}")
math(EXPR fpc_ver "${fpc_vers_major}*10000 + ${fpc_vers_minor}*100 + ${fpc_vers_patch}")
- if (${fpc_ver} LESS "010906")
- message("Minimum required version of FreePascal is 2.0.5")
- else (${fpc_ver} LESS "010906")
+ if (fpc_ver LESS "010906")
+ message("Minimum required version of FreePascal is 1.9.6")
+ else (fpc_ver LESS "010906")
set(pascal_compiler ${fpc_executable})
set(pascal_compiler_flags "-B" "-Sd" "-Xs" "-OG" "-O2" "-Cs2000000" ${hwengine_project})
- endif (${fpc_ver} LESS "010906")
+ endif (fpc_ver LESS "010906")
endif (fpc_version)
endif (dcc32version)