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

Oscar Fuentes ofv at wanadoo.es
Mon Aug 2 12:00:34 PDT 2010


Author: ofv
Date: Mon Aug  2 14:00:34 2010
New Revision: 110057

URL: http://llvm.org/viewvc/llvm-project?rev=110057&view=rev
Log:
Lets the CMake GUI show a list of possible values for LLVM_USE_CRT

Patch by nobled!

Modified:
    llvm/trunk/CMakeLists.txt

Modified: llvm/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=110057&r1=110056&r2=110057&view=diff
==============================================================================
--- llvm/trunk/CMakeLists.txt (original)
+++ llvm/trunk/CMakeLists.txt Mon Aug  2 14:00:34 2010
@@ -222,6 +222,9 @@
     MTd)
 
   set(LLVM_USE_CRT "" CACHE STRING "Specify VC++ CRT to use for debug/release configurations.")
+  # Lets the GUI show a drop-down list of possible values, including
+  # an empty string as the default:
+  set_property(CACHE LLVM_USE_CRT PROPERTY STRINGS "";${MSVC_CRT})
   add_llvm_definitions( -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS )
   add_llvm_definitions( -D_SCL_SECURE_NO_WARNINGS -DCRT_NONSTDC_NO_WARNINGS )
   add_llvm_definitions( -D_SCL_SECURE_NO_DEPRECATE )





More information about the llvm-commits mailing list