diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-02-16 03:07:15 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-02-16 03:07:15 +0000 |
commit | 792f975febd8d2da03d5628eb49400b227458705 (patch) | |
tree | 02339aaab923082e118ca47ec3ac46b5251eb12d /CMakeLists.txt | |
parent | 652f1ef660601fd72ebfbbd66e1306766f254c07 (diff) |
CMake: Tweak for Visual Studio 10 quirk at clang-standalone build.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125647 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 21775d193f..63b721354e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -221,3 +221,12 @@ add_subdirectory(test) 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() |