cmake: make BUILD_SHARED_LIBS a visible option
authorDylan Noblesmith <nobled@dreamwidth.org>
Wed, 1 Feb 2012 14:49:39 +0000 (14:49 +0000)
committerDylan Noblesmith <nobled@dreamwidth.org>
Wed, 1 Feb 2012 14:49:39 +0000 (14:49 +0000)
It could only be specified on the commandline, and wouldn't show
up as an option in the GUI or when invoked via `cmake -i` at all.

This also tells CMake that it's a BOOL, rather than "UNINITIALIZED".

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149506 91177308-0d34-0410-b5e6-96231b3b80d8

CMakeLists.txt

index 13e358a4619905cae95b45cc6e520173f6c9747a..1e7a4a340f6cd35e12fb84f1dbeaa99be5a11c5a 100644 (file)
@@ -94,6 +94,9 @@ else( MSVC )
     CACHE STRING "Semicolon-separated list of targets to build, or \"all\".")
 endif( MSVC )
 
+option(BUILD_SHARED_LIBS
+  "Build all libraries as shared libraries instead of static" OFF)
+
 option(LLVM_ENABLE_CBE_PRINTF_A "Set to ON if CBE is enabled for printf %a output" ON)
 if(LLVM_ENABLE_CBE_PRINTF_A)
   set(ENABLE_CBE_PRINTF_A 1)