Commit 8382f88c authored by Michael Sherman's avatar Michael Sherman
Browse files

Fix OSX link problem for C examples as reported by Kim Branson.

parent 96f3680d
...@@ -79,7 +79,9 @@ ENDFOREACH(EX_ROOT ${CPP_EXAMPLES}) ...@@ -79,7 +79,9 @@ ENDFOREACH(EX_ROOT ${CPP_EXAMPLES})
FOREACH(EX_ROOT ${C_EXAMPLES}) FOREACH(EX_ROOT ${C_EXAMPLES})
IF (BUILD_TESTING_SHARED) IF (BUILD_TESTING_SHARED)
# Link with shared library # Link with shared library
ADD_EXECUTABLE(${EX_ROOT} ${EX_ROOT}.c) # We need at least one .cpp here to get CMake to include
# C++ libraries on the link line.
ADD_EXECUTABLE(${EX_ROOT} ${EX_ROOT}.c Empty.cpp)
SET_TARGET_PROPERTIES(${EX_ROOT} SET_TARGET_PROPERTIES(${EX_ROOT}
PROPERTIES PROPERTIES
PROJECT_LABEL "Example C - ${EX_ROOT}") PROJECT_LABEL "Example C - ${EX_ROOT}")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment