# HG changeset patch
# User Liao Tonglang <liaotonglang@gmail.com>
# Date 1585415542 -28800
#      Sun Mar 29 01:12:22 2020 +0800
# Node ID cc0d4b55d8ef945a8324d1f16fb81dbf7771c954
# Parent  211d5488df72a363f5db292ed458a0707f923a02
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.

diff --git a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,7 +8,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)
+set(YAML_STATIC_LIB_NAME "yaml" CACHE STRING "Base name of static library output")
 
 #
 # Output directories for a build tree