[libcxx] r226192 - Use set() instead of option() for string option.

Dan Albert danalbert at google.com
Thu Jan 15 10:56:45 PST 2015


Author: danalbert
Date: Thu Jan 15 12:56:45 2015
New Revision: 226192

URL: http://llvm.org/viewvc/llvm-project?rev=226192&view=rev
Log:
Use set() instead of option() for string option.

Fixes issue in r226185.

Modified:
    libcxx/trunk/test/CMakeLists.txt

Modified: libcxx/trunk/test/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/CMakeLists.txt?rev=226192&r1=226191&r2=226192&view=diff
==============================================================================
--- libcxx/trunk/test/CMakeLists.txt (original)
+++ libcxx/trunk/test/CMakeLists.txt Thu Jan 15 12:56:45 2015
@@ -23,7 +23,8 @@ if(PYTHONINTERP_FOUND)
   set(LIT_ARGS "${LLVM_LIT_ARGS}")
   separate_arguments(LIT_ARGS)
 
-  option(LIBCXX_LIT_VARIANT "Configuration variant to use for LIT." "libcxx")
+  set(LIBCXX_LIT_VARIANT "libcxx" CACHE STRING
+      "Configuration variant to use for LIT.")
 
   pythonize_bool(LIBCXX_ENABLE_EXCEPTIONS)
   pythonize_bool(LIBCXX_ENABLE_RTTI)





More information about the cfe-commits mailing list