[llvm-commits] [llvm] r149506 - /llvm/trunk/CMakeLists.txt

Dylan Noblesmith nobled at dreamwidth.org
Wed Feb 1 06:49:40 PST 2012


Author: nobled
Date: Wed Feb  1 08:49:39 2012
New Revision: 149506

URL: http://llvm.org/viewvc/llvm-project?rev=149506&view=rev
Log:
cmake: make BUILD_SHARED_LIBS a visible option

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".


Modified:
    llvm/trunk/CMakeLists.txt

Modified: llvm/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=149506&r1=149505&r2=149506&view=diff
==============================================================================
--- llvm/trunk/CMakeLists.txt (original)
+++ llvm/trunk/CMakeLists.txt Wed Feb  1 08:49:39 2012
@@ -94,6 +94,9 @@
     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)





More information about the llvm-commits mailing list