Add koda's patch for Mac OS X compilation
authorunc0rr
Sat, 24 Jan 2009 12:48:32 +0000
changeset 1744 19a0016af2a2
parent 1743 ebc54f5fe4e7
child 1745 9a2018ff0c83
Add koda's patch for Mac OS X compilation
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)