# HG changeset patch # User unc0rr # Date 1361430762 -14400 # Node ID 6652a8c8ce8960d74cf22409f41fa136e57d2934 # Parent 5e7f01d78ab06691d8bee7bafcd2c79586de3900# Parent 24d2bdc6deff7e23007719ddc37b990eb08d989b Merge diff -r 5e7f01d78ab0 -r 6652a8c8ce89 hedgewars/CMakeLists.txt --- a/hedgewars/CMakeLists.txt Thu Feb 21 01:37:04 2013 +0400 +++ b/hedgewars/CMakeLists.txt Thu Feb 21 11:12:42 2013 +0400 @@ -146,6 +146,10 @@ list(APPEND pascal_flags "-k${SDLMAIN_LIB}") endif() + + #when you have multiple ld installation make sure you get the one bundled with the compiler + get_filename_component(compiler_dir ${CMAKE_C_COMPILER} PATH) + list(APPEND pascal_flags "-FD${compiler_dir}") endif(APPLE) if(NOT NOPNG)