[cfe-commits] r125647 - /cfe/trunk/CMakeLists.txt

NAKAMURA Takumi geek4civic at gmail.com
Tue Feb 15 19:07:15 PST 2011


Author: chapuni
Date: Tue Feb 15 21:07:15 2011
New Revision: 125647

URL: http://llvm.org/viewvc/llvm-project?rev=125647&view=rev
Log:
CMake: Tweak for Visual Studio 10 quirk at clang-standalone build.

Modified:
    cfe/trunk/CMakeLists.txt

Modified: cfe/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CMakeLists.txt?rev=125647&r1=125646&r2=125647&view=diff
==============================================================================
--- cfe/trunk/CMakeLists.txt (original)
+++ cfe/trunk/CMakeLists.txt Tue Feb 15 21:07:15 2011
@@ -221,3 +221,12 @@
 if( NOT CLANG_BUILT_STANDALONE )
   add_subdirectory(unittests)
 endif()
+
+# Workaround for MSVS10 to avoid the Dialog Hell
+# FIXME: This could be removed with future version of CMake.
+if( CLANG_BUILT_STANDALONE AND MSVC_VERSION EQUAL 1600 )
+  set(CLANG_SLN_FILENAME "${CMAKE_CURRENT_BINARY_DIR}/Clang.sln")
+  if( EXISTS "${CLANG_SLN_FILENAME}" )
+    file(APPEND "${CLANG_SLN_FILENAME}" "\n# This should be regenerated!\n")
+  endif()
+endif()





More information about the cfe-commits mailing list