From 1ec57590e431362aafe2959a57ce906127561893 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Sat, 23 Apr 2011 11:26:46 +0100 Subject: [PATCH] Fix MacOSX build. --- CMakeLists.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0c009f4..9dcb14f 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -215,10 +215,16 @@ else () set_target_properties (glxtrace PROPERTIES # avoid the default "lib" prefix PREFIX "" - # prevent symbol relocations internal to our wrapper library to be overwritten by the application - LINK_FLAGS "-Wl,-Bsymbolic -Wl,-Bsymbolic-functions" ) + # Prevent symbol relocations internal to our wrapper library to be + # overwritten by the application. + if (NOT APPLE) + set_target_properties (glxtrace PROPERTIES + LINK_FLAGS "-Wl,-Bsymbolic -Wl,-Bsymbolic-functions" + ) + endif (NOT APPLE) + target_link_libraries (glxtrace dl) endif () -- 2.45.2