Commit 968e0c1f authored by Andy Maloney's avatar Andy Maloney Committed by Jesse Beder
Browse files

Fix shared lib build with new YAML_BUILD_SHARED_LIBS option (#737)

parent b218787b
...@@ -252,7 +252,11 @@ set(_INSTALL_DESTINATIONS ...@@ -252,7 +252,11 @@ set(_INSTALL_DESTINATIONS
### ###
### Library ### 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) if (NOT CMAKE_VERSION VERSION_LESS 2.8.12)
target_include_directories(yaml-cpp target_include_directories(yaml-cpp
......
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