Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
8382f88c
Commit
8382f88c
authored
Jun 30, 2009
by
Michael Sherman
Browse files
Fix OSX link problem for C examples as reported by Kim Branson.
parent
96f3680d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
examples/CMakeLists.txt
examples/CMakeLists.txt
+3
-1
No files found.
examples/CMakeLists.txt
View file @
8382f88c
...
@@ -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
}
"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment