hedgewars/CMakeLists.txt
changeset 173 004493dd60e4
parent 126 93df479aa1b9
child 184 f97a7a3dc8f6
--- a/hedgewars/CMakeLists.txt	Tue Sep 26 20:24:32 2006 +0000
+++ b/hedgewars/CMakeLists.txt	Tue Sep 26 20:25:42 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 "010902")
-			message("Minimum required version of FreePascal is 1.9.2")
-		else (fpc_ver LESS "010902")
+		if (${fpc_ver} LESS "010906")
+			message("Minimum required version of FreePascal is 2.0.5")
+		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 "010902")
+		endif (${fpc_ver} LESS "010906")
 	endif (fpc_version)
 endif (dcc32version)