From: NAKAMURA Takumi Date: Wed, 23 Feb 2011 12:07:49 +0000 (+0000) Subject: CMake: Don't use ${CMAKE_CFG_INTDIR} for installed llvm-lit on Visual Studio. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=378d2a110aa0339281b939b11cbe36a44e987278;p=clang CMake: Don't use ${CMAKE_CFG_INTDIR} for installed llvm-lit on Visual Studio. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126310 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 0a05447f9d..5e12d04baa 100644 --- a/test/CMakeLists.txt +++ b/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 )