hedgewars/CMakeLists.txt
changeset 534 92fb2b0d5117
parent 476 a4e975f70b60
child 564 17fb45c670c1
equal deleted inserted replaced
533:eebb7684ac22 534:92fb2b0d5117
    67 	math(EXPR fpc_ver "${fpc_vers_major}*10000 + ${fpc_vers_minor}*100 + ${fpc_vers_patch}")
    67 	math(EXPR fpc_ver "${fpc_vers_major}*10000 + ${fpc_vers_minor}*100 + ${fpc_vers_patch}")
    68 	if (fpc_ver LESS "010904")
    68 	if (fpc_ver LESS "010904")
    69 		message("Minimum required version of FreePascal is 1.9.4")
    69 		message("Minimum required version of FreePascal is 1.9.4")
    70 	else (fpc_ver LESS "010904")
    70 	else (fpc_ver LESS "010904")
    71 		set(pascal_compiler ${fpc_executable})
    71 		set(pascal_compiler ${fpc_executable})
    72 		set(pascal_compiler_flags ${noexecstack_flags} "-B" "-FE../bin" "-Cs2000000" "-O2" ${hwengine_project})
    72 		set(pascal_compiler_flags ${noexecstack_flags} "-B" "-FE../bin" "-Cs2000000" "-vwi" "-O2" ${hwengine_project})
    73 	endif (fpc_ver LESS "010904")
    73 	endif (fpc_ver LESS "010904")
    74 endif (fpc_version)
    74 endif (fpc_version)
    75 
    75 
    76 if (NOT pascal_compiler)
    76 if (NOT pascal_compiler)
    77 	message(FATAL_ERROR "No Pascal compiler found!")
    77 	message(FATAL_ERROR "No Pascal compiler found!")