]> andersk Git - libyaml.git/commitdiff
allow override of Windows static lib name
authorMatt Davis <mrd@redhat.com>
Fri, 1 Mar 2019 23:15:27 +0000 (15:15 -0800)
committerMatt Davis <mrd@redhat.com>
Sat, 2 Mar 2019 01:32:13 +0000 (17:32 -0800)
* also changed name back to original default of yaml, as the change in #10 to `yaml_static` broke things that relied on that

CMakeLists.txt

index 1abdd772b2aa7866aeea505f7ebc1a4b14b440d8..e00193ea22ac6b326db21680502549ec124b6d14 100644 (file)
@@ -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
This page took 0.179502 seconds and 5 git commands to generate.