hedgewars/CMakeLists.txt
changeset 2413 d921d13a8546
parent 2406 2e757b32991e
child 2420 b7390a3040f8
equal deleted inserted replaced
2412:8f48a9181f99 2413:d921d13a8546
    90 	message(FATAL_ERROR "No Pascal compiler found!")
    90 	message(FATAL_ERROR "No Pascal compiler found!")
    91 endif (NOT pascal_compiler)
    91 endif (NOT pascal_compiler)
    92 
    92 
    93 
    93 
    94 #PASCAL FLAG SECTION
    94 #PASCAL FLAG SECTION
    95 set(pascal_compiler_flags ${noexecstack_flags} "-B" "-FE../bin" "-Fl../bin/" "-Cs2000000" "-vwi" "-fPIC" ${hwengine_project})
    95 set(pascal_compiler_flags ${noexecstack_flags} "-B" "-FE../bin" "-Fl../bin/" "-Cs2000000" "-vwi" ${hwengine_project})
    96 
    96 
    97 if(OPTIMIZATIONS)
    97 if(OPTIMIZATIONS)
    98 	set(pascal_compiler_flags "-O2" "-Xs" "-Nu" ${pascal_compiler_flags})
    98 	set(pascal_compiler_flags "-O2" "-Xs" "-Nu" ${pascal_compiler_flags})
    99 	if(APPLE AND NOT universal_build)
    99 	if(APPLE AND NOT universal_build)
   100 		set(pascal_compiler_flags "-CfSSE2" ${pascal_compiler_flags})	#instruction set for ppc is 7400
   100 		set(pascal_compiler_flags "-fPIC" "-CfSSE2" ${pascal_compiler_flags})	#instruction set for ppc is 7400
   101 	endif()			
   101 	endif()			
   102 else(OPTIMIZATIONS)
   102 else(OPTIMIZATIONS)
   103 	set(pascal_compiler_flags "-O-" "-gl" "-dDEBUGFILE" "-pg" "-va" ${pascal_compiler_flags})
   103 	set(pascal_compiler_flags "-O-" "-gl" "-dDEBUGFILE" "-pg" "-va" ${pascal_compiler_flags})
   104 endif(OPTIMIZATIONS)
   104 endif(OPTIMIZATIONS)
   105 
   105