hedgewars/CMakeLists.txt
changeset 256 48aeb69ef572
parent 226 be2e08b0109f
child 271 f2f9a3d5b441
equal deleted inserted replaced
255:97b2d242e2a1 256:48aeb69ef572
    59 		math(EXPR fpc_ver "${fpc_vers_major}*10000 + ${fpc_vers_minor}*100 + ${fpc_vers_patch}")
    59 		math(EXPR fpc_ver "${fpc_vers_major}*10000 + ${fpc_vers_minor}*100 + ${fpc_vers_patch}")
    60 		if (fpc_ver LESS "010904")
    60 		if (fpc_ver LESS "010904")
    61 			message("Minimum required version of FreePascal is 1.9.4")
    61 			message("Minimum required version of FreePascal is 1.9.4")
    62 		else (fpc_ver LESS "010904")
    62 		else (fpc_ver LESS "010904")
    63 			set(pascal_compiler ${fpc_executable})
    63 			set(pascal_compiler ${fpc_executable})
    64 			set(pascal_compiler_flags "-B" "-Sd" "-Xs" "-OG" "-O2" "-FE${EXECUTABLE_OUTPUT_PATH}" "-Cs2000000" ${hwengine_project})
    64 			set(pascal_compiler_flags "-k-z" "-knoexecstack" "-B" "-Sd" "-Xs" "-OG" "-O2" "-FE${EXECUTABLE_OUTPUT_PATH}" "-Cs2000000" ${hwengine_project})
    65 		endif (fpc_ver LESS "010904")
    65 		endif (fpc_ver LESS "010904")
    66 	endif (fpc_version)
    66 	endif (fpc_version)
    67 endif (dcc32version)
    67 endif (dcc32version)
    68 
    68 
    69 if (NOT pascal_compiler)
    69 if (NOT pascal_compiler)