gplugin/gplugin

Work better with clang on osx...
feature/osx-fixing
2015-12-20, Gary Kramlich
0b1c1ade39f3
Parents 3fe14c419cec
Children a3fd9e20d7f2
Work better with clang on osx...
--- a/gplugin/tests/CMakeLists.txt Sun Dec 20 19:01:31 2015 -0600
+++ b/gplugin/tests/CMakeLists.txt Sun Dec 20 19:01:44 2015 -0600
@@ -3,7 +3,15 @@
###############################################################################
macro(add_test_plugin plugin)
add_library(${plugin} MODULE ${plugin}.c)
- set_target_properties(${plugin} PROPERTIES PREFIX "")
+
+ if(CMAKE_C_COMPILER_ID MATCHES "Clang")
+ set(LINK_FLAGS "-undefined dynamic_lookup")
+ endif(CMAKE_C_COMPILER_ID MATCHES "Clang")
+
+ set_target_properties(${plugin} PROPERTIES
+ PREFIX ""
+ LINK_FLAGS "${LINK_FLAGS}"
+ )
target_link_libraries(${plugin} ${GLIB_LIBRARIES} gplugin)
endmacro(add_test_plugin)