diff options
| author | NAKAMURA Takumi <geek4civic@gmail.com> | 2010-11-19 03:19:18 +0000 |
|---|---|---|
| committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2010-11-19 03:19:18 +0000 |
| commit | 148b62cca9bb331f8203f47d1e8675e826e3852d (patch) | |
| tree | 7b7a2d755743bd6ac257ae270b162a87c185c5de | |
| parent | f7c3e27f62afe806af2f11f03531133e80abaee2 (diff) | |
| download | llvm-148b62cca9bb331f8203f47d1e8675e826e3852d.zip llvm-148b62cca9bb331f8203f47d1e8675e826e3852d.tar.gz llvm-148b62cca9bb331f8203f47d1e8675e826e3852d.tar.bz2 | |
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.
llvm-svn: 119780
| -rw-r--r-- | llvm/CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt index 078c961..62a08b2 100644 --- a/llvm/CMakeLists.txt +++ b/llvm/CMakeLists.txt @@ -438,3 +438,12 @@ set(CPACK_PACKAGE_VERSION_MAJOR 2) 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() |
