diff --git a/CMakeLists.txt b/CMakeLists.txt
index 211d5488df72a363f5db292ed458a0707f923a02_Q01ha2VMaXN0cy50eHQ=..cc0d4b55d8ef945a8324d1f16fb81dbf7771c954_Q01ha2VMaXN0cy50eHQ= 100644
--- 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