diff options
author | Oscar Fuentes <ofv@wanadoo.es> | 2010-08-02 19:00:34 +0000 |
---|---|---|
committer | Oscar Fuentes <ofv@wanadoo.es> | 2010-08-02 19:00:34 +0000 |
commit | cb95a2bf285da4cf7251df4dd45239b530381835 (patch) | |
tree | 024aee8ea76cb129749dccdf745323e1da550291 | |
parent | 811edc1f1a0672d28cd7c938e478a92543e68a51 (diff) | |
download | external_llvm-cb95a2bf285da4cf7251df4dd45239b530381835.zip external_llvm-cb95a2bf285da4cf7251df4dd45239b530381835.tar.gz external_llvm-cb95a2bf285da4cf7251df4dd45239b530381835.tar.bz2 |
Lets the CMake GUI show a list of possible values for LLVM_USE_CRT
Patch by nobled!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110057 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a4babed..fb953a9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -222,6 +222,9 @@ if( MSVC ) 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 ) |