[cfe-commits] r126310 - /cfe/trunk/test/CMakeLists.txt
NAKAMURA Takumi
geek4civic at gmail.com
Wed Feb 23 04:07:49 PST 2011
Author: chapuni
Date: Wed Feb 23 06:07:49 2011
New Revision: 126310
URL: http://llvm.org/viewvc/llvm-project?rev=126310&view=rev
Log:
CMake: Don't use ${CMAKE_CFG_INTDIR} for installed llvm-lit on Visual Studio.
Modified:
cfe/trunk/test/CMakeLists.txt
Modified: cfe/trunk/test/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CMakeLists.txt?rev=126310&r1=126309&r2=126310&view=diff
==============================================================================
--- cfe/trunk/test/CMakeLists.txt (original)
+++ cfe/trunk/test/CMakeLists.txt Wed Feb 23 06:07:49 2011
@@ -54,6 +54,10 @@
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 )
More information about the cfe-commits
mailing list