hedgewars/CMakeLists.txt
changeset 1415 6fbfee0e113a
parent 1097 06b15817b8a0
child 1744 19a0016af2a2
equal deleted inserted replaced
1414:971136fa0a80 1415:6fbfee0e113a
    67 if (fpc_version)
    67 if (fpc_version)
    68 	string(REGEX REPLACE "([0-9]+)\\.[0-9]+\\.[0-9]+" "\\1" fpc_vers_major "${fpc_version}")
    68 	string(REGEX REPLACE "([0-9]+)\\.[0-9]+\\.[0-9]+" "\\1" fpc_vers_major "${fpc_version}")
    69 	string(REGEX REPLACE "[0-9]+\\.([0-9])+\\.[0-9]+" "\\1" fpc_vers_minor "${fpc_version}")
    69 	string(REGEX REPLACE "[0-9]+\\.([0-9])+\\.[0-9]+" "\\1" fpc_vers_minor "${fpc_version}")
    70 	string(REGEX REPLACE "[0-9]+\\.[0-9]+\\.([0-9]+)" "\\1" fpc_vers_patch "${fpc_version}")
    70 	string(REGEX REPLACE "[0-9]+\\.[0-9]+\\.([0-9]+)" "\\1" fpc_vers_patch "${fpc_version}")
    71 	math(EXPR fpc_ver "${fpc_vers_major}*10000 + ${fpc_vers_minor}*100 + ${fpc_vers_patch}")
    71 	math(EXPR fpc_ver "${fpc_vers_major}*10000 + ${fpc_vers_minor}*100 + ${fpc_vers_patch}")
    72 	if (fpc_ver LESS "010904")
    72 	if (fpc_ver LESS "020200")
    73 		message("Minimum required version of FreePascal is 1.9.4")
    73 		message("Minimum required version of FreePascal is 2.2.0")
    74 	else (fpc_ver LESS "010904")
    74 	else (fpc_ver LESS "020200")
    75 		set(pascal_compiler ${fpc_executable})
    75 		set(pascal_compiler ${fpc_executable})
    76 		set(pascal_compiler_flags ${noexecstack_flags} "-B" "-FE../bin" "-Cs2000000" "-vwi" "-O2" ${hwengine_project})
    76 		set(pascal_compiler_flags ${noexecstack_flags} "-B" "-FE../bin" "-Cs2000000" "-vwi" "-O2" ${hwengine_project})
    77 	endif (fpc_ver LESS "010904")
    77 	endif (fpc_ver LESS "020200")
    78 endif (fpc_version)
    78 endif (fpc_version)
    79 
    79 
    80 if (NOT pascal_compiler)
    80 if (NOT pascal_compiler)
    81 	message(FATAL_ERROR "No Pascal compiler found!")
    81 	message(FATAL_ERROR "No Pascal compiler found!")
    82 endif (NOT pascal_compiler)
    82 endif (NOT pascal_compiler)