hedgewars/CMakeLists.txt
changeset 2251 bf0b59d3536a
parent 2241 7992f7ba388d
child 2326 0ddf641fddee
equal deleted inserted replaced
2250:70f344c911ea 2251:bf0b59d3536a
    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" "-dDEBUGFILE" ${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 		if(LOWRES)
       
    97 			set(pascal_compiler_flags "-dLOWRES" ${pascal_compiler_flags} ${hwengine_project})
       
    98 		endif(LOWRES)
    96 	endif (fpc_ver LESS "020200")
    99 	endif (fpc_ver LESS "020200")
    97 endif (fpc_version)
   100 endif (fpc_version)
    98 
   101 
    99 if (NOT pascal_compiler)
   102 if (NOT pascal_compiler)
   100 	message(FATAL_ERROR "No Pascal compiler found!")
   103 	message(FATAL_ERROR "No Pascal compiler found!")