diff options
| author | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-02-23 12:07:49 +0000 |
|---|---|---|
| committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-02-23 12:07:49 +0000 |
| commit | ff75d8d50218620e05403358fe4d6be15adf398f (patch) | |
| tree | 095a7c2e6e3297f72975dc0fc36773a039ae1e08 /clang | |
| parent | 2ece0b171f361245a508b40272ff12643f687891 (diff) | |
| download | bcm5719-llvm-ff75d8d50218620e05403358fe4d6be15adf398f.tar.gz bcm5719-llvm-ff75d8d50218620e05403358fe4d6be15adf398f.zip | |
CMake: Don't use ${CMAKE_CFG_INTDIR} for installed llvm-lit on Visual Studio.
llvm-svn: 126310
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/test/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/CMakeLists.txt b/clang/test/CMakeLists.txt index 0a05447f9d1..5e12d04baac 100644 --- a/clang/test/CMakeLists.txt +++ b/clang/test/CMakeLists.txt @@ -54,6 +54,10 @@ if(PYTHONINTERP_FOUND) set(LIT "${LLVM_SOURCE_DIR}/utils/lit/lit.py") else() set(LIT "${PATH_TO_LLVM_BUILD}/bin/${CMAKE_CFG_INTDIR}/llvm-lit") + # Installed LLVM does not contain ${CMAKE_CFG_INTDIR} in paths. + if( NOT EXISTS ${LIT} ) + set(LIT "${PATH_TO_LLVM_BUILD}/bin/llvm-lit") + endif() endif() if( PATH_TO_LLVM_BUILD ) |

