From 9f9e4a29b78d429442d3cae9313e0517da04d42b Mon Sep 17 00:00:00 2001 From: Liao Tonglang Date: Sun, 29 Mar 2020 01:12:22 +0800 Subject: 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. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CMakeLists.txt') 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 -- cgit v1.2.1