diff options
author | Matt Davis <nitzmahone@users.noreply.github.com> | 2019-03-04 08:03:10 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-04 08:03:10 -0800 |
commit | e7a5f0bc0b4e5b51b90d8a31e7382f6a4479f57d (patch) | |
tree | 8b92a1c0e3574c61abb41e54371bf10620bc4527 | |
parent | 78e6ebfb20241a11eb9187c0f30b8892fb5e6862 (diff) | |
parent | 99e0a150ff62f37dec48334c559d2421574d3658 (diff) | |
download | libyaml-git-e7a5f0bc0b4e5b51b90d8a31e7382f6a4479f57d.tar.gz |
Merge pull request #136 from nitzmahone/win_fixes0.2.2-pre3
allow override of Windows static lib name
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1abdd77..e00193e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,6 +8,7 @@ set (YAML_VERSION_PATCH 7) set (YAML_VERSION_STRING "${YAML_VERSION_MAJOR}.${YAML_VERSION_MINOR}.${YAML_VERSION_PATCH}") option(BUILD_SHARED_LIBS "Build libyaml as a shared library" OFF) +option(YAML_STATIC_LIB_NAME "base name of static library output" yaml) # # Output directories for a build tree @@ -56,8 +57,8 @@ add_library(yaml ${SRCS}) if(NOT BUILD_SHARED_LIBS) set_target_properties(yaml - PROPERTIES OUTPUT_NAME yaml_static - ) + PROPERTIES OUTPUT_NAME ${YAML_STATIC_LIB_NAME} + ) endif() set_target_properties(yaml |