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

NAKAMURA Takumi geek4civic at gmail.com
Thu Nov 18 19:19:18 PST 2010


Author: chapuni
Date: Thu Nov 18 21:19:18 2010
New Revision: 119780

URL: http://llvm.org/viewvc/llvm-project?rev=119780&view=rev
Log:
CMakeLists.txt: On MSVS10, touch LLVM.sln as workaround, w/e project files are changed, to avoid the Dialog Hell. Thanks to Oscar.

FIXME: This could be removed with future version of CMake.

Modified:
    llvm/trunk/CMakeLists.txt

Modified: llvm/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=119780&r1=119779&r2=119780&view=diff
==============================================================================
--- llvm/trunk/CMakeLists.txt (original)
+++ llvm/trunk/CMakeLists.txt Thu Nov 18 21:19:18 2010
@@ -438,3 +438,12 @@
 set(CPACK_PACKAGE_VERSION_MINOR 9)
 add_version_info_from_vcs(CPACK_PACKAGE_VERSION_PATCH)
 include(CPack)
+
+# Workaround for MSVS10 to avoid the Dialog Hell
+# FIXME: This could be removed with future version of CMake.
+if(MSVC_VERSION EQUAL 1600)
+  set(LLVM_SLN_FILENAME "${CMAKE_CURRENT_BINARY_DIR}/LLVM.sln")
+  if( EXISTS "${LLVM_SLN_FILENAME}" )
+    file(APPEND "${LLVM_SLN_FILENAME}" "\n# This should be regenerated!\n")
+  endif()
+endif()





More information about the llvm-commits mailing list