Make it possible to switch off solution folders. VS Express does not support
authorManuel Klimek <klimek@google.com>
Wed, 9 May 2012 15:10:54 +0000 (15:10 +0000)
committerManuel Klimek <klimek@google.com>
Wed, 9 May 2012 15:10:54 +0000 (15:10 +0000)
them, and requires the user to click away one error message per folder on
project load.

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

CMakeLists.txt

index 9fcdd247ec15eaac8d53c91c01cfb4b6f63fed84..7f4dea95efdbe8010aadda2e05f3d5db4edbbec1 100644 (file)
@@ -15,7 +15,10 @@ set(LLVM_VERSION_MINOR 2)
 
 set(PACKAGE_VERSION "${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}svn")
 
-set_property(GLOBAL PROPERTY USE_FOLDERS ON)
+option(LLVM_USE_FOLDERS "Enable solution folders in Visual Studio. Disable for Express versions." ON)
+if ( LLVM_USE_FOLDERS )
+  set_property(GLOBAL PROPERTY USE_FOLDERS ON)
+endif()
 
 include(VersionFromVCS)