Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
yaml-cpp
Commits
968e0c1f
Commit
968e0c1f
authored
Sep 14, 2019
by
Andy Maloney
Committed by
Jesse Beder
Sep 14, 2019
Browse files
Fix shared lib build with new YAML_BUILD_SHARED_LIBS option (#737)
parent
b218787b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
CMakeLists.txt
CMakeLists.txt
+5
-1
No files found.
CMakeLists.txt
View file @
968e0c1f
...
...
@@ -252,7 +252,11 @@ set(_INSTALL_DESTINATIONS
###
### Library
###
add_library
(
yaml-cpp
${
library_sources
}
)
if
(
YAML_BUILD_SHARED_LIBS
)
add_library
(
yaml-cpp SHARED
${
library_sources
}
)
else
()
add_library
(
yaml-cpp STATIC
${
library_sources
}
)
endif
()
if
(
NOT CMAKE_VERSION VERSION_LESS 2.8.12
)
target_include_directories
(
yaml-cpp
...
...
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