diff options
author | Liao Tonglang <liaotonglang@gmail.com> | 2020-03-29 01:12:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-28 18:12:22 +0100 |
commit | 9f9e4a29b78d429442d3cae9313e0517da04d42b (patch) | |
tree | 988c146f39cb481d634a970377b3856794597e92 | |
parent | fa1293a11f2137709aec313f5789502406e587dd (diff) | |
download | libyaml-git-9f9e4a29b78d429442d3cae9313e0517da04d42b.tar.gz |
Change cmake target name from libOFF.a to libyaml.a (#157)
option can only be ON or OFF. Use set() instead of option() to set default name of target.
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9504c3b..7b0d35a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,7 +8,7 @@ set (YAML_VERSION_PATCH 2) 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) +set(YAML_STATIC_LIB_NAME "yaml" CACHE STRING "Base name of static library output") # # Output directories for a build tree |