hedgewars/CMakeLists.txt
changeset 2241 7992f7ba388d
parent 2239 d7b5c65f7544
child 2251 bf0b59d3536a
equal deleted inserted replaced
2240:7ce9e6b7be3b 2241:7992f7ba388d
    86 	math(EXPR fpc_ver "${fpc_vers_major}*10000 + ${fpc_vers_minor}*100 + ${fpc_vers_patch}")
    86 	math(EXPR fpc_ver "${fpc_vers_major}*10000 + ${fpc_vers_minor}*100 + ${fpc_vers_patch}")
    87 	if (fpc_ver LESS "020200")
    87 	if (fpc_ver LESS "020200")
    88 		message("Minimum required version of FreePascal is 2.2.0")
    88 		message("Minimum required version of FreePascal is 2.2.0")
    89 	else (fpc_ver LESS "020200")
    89 	else (fpc_ver LESS "020200")
    90 		set(pascal_compiler ${fpc_executable})
    90 		set(pascal_compiler ${fpc_executable})
    91 		if( NOT CMAKE_BUILD_TYPE OR CMAKE_BUILD_TYPE MATCHES "Release")
    91 		if(NOT CMAKE_BUILD_TYPE OR CMAKE_BUILD_TYPE MATCHES "Release")
    92 			set(pascal_compiler_flags ${noexecstack_flags} "-B" "-FE../bin" "-Fl../bin/" "-Cs2000000" "-vwi" "-O2" "-Xs" ${hwengine_project})
    92 			set(pascal_compiler_flags ${noexecstack_flags} "-B" "-FE../bin" "-Fl../bin/" "-Cs2000000" "-vwi" "-O2" "-Xs" ${hwengine_project})
    93 		else()
    93 		else()
    94 			set(pascal_compiler_flags ${noexecstack_flags} "-B" "-FE../bin" "-Fl../bin/" "-Cs2000000" "-vwi" "-O-" "-gl" ${hwengine_project})			
    94 			set(pascal_compiler_flags ${noexecstack_flags} "-B" "-FE../bin" "-Fl../bin/" "-Cs2000000" "-vwi" "-O-" "-gl" "-dDEBUGFILE" ${hwengine_project})
    95 		endif()
    95 		endif()
    96 	endif (fpc_ver LESS "020200")
    96 	endif (fpc_ver LESS "020200")
    97 endif (fpc_version)
    97 endif (fpc_version)
    98 
    98 
    99 if (NOT pascal_compiler)
    99 if (NOT pascal_compiler)