# HG changeset patch # User unc0rr # Date 1232801312 0 # Node ID 19a0016af2a22555e6b9838273032ea9800bedbd # Parent ebc54f5fe4e7cefee581504fcaa0cace43a10f4e Add koda's patch for Mac OS X compilation diff -r ebc54f5fe4e7 -r 19a0016af2a2 hedgewars/CMakeLists.txt --- a/hedgewars/CMakeLists.txt Sat Jan 24 12:43:57 2009 +0000 +++ b/hedgewars/CMakeLists.txt Sat Jan 24 12:48:32 2009 +0000 @@ -73,7 +73,11 @@ message("Minimum required version of FreePascal is 2.2.0") else (fpc_ver LESS "020200") set(pascal_compiler ${fpc_executable}) - set(pascal_compiler_flags ${noexecstack_flags} "-B" "-FE../bin" "-Cs2000000" "-vwi" "-O2" ${hwengine_project}) + IF(APPLE) + set(pascal_compiler_flags ${noexecstack_flags} "-B" "-FE../bin" "-Cs2000000" "-vwi" "-O2" "-Fl/opt/local/lib" ${hwengine_project}) + ELSE(APPLE) + set(pascal_compiler_flags ${noexecstack_flags} "-B" "-FE../bin" "-Cs2000000" "-vwi" "-O2" ${hwengine_project}) + ENDIF(APPLE) endif (fpc_ver LESS "020200") endif (fpc_version)