[cfe-commits] r124975 - /cfe/trunk/test/CMakeLists.txt
Oscar Fuentes
ofv at wanadoo.es
Sat Feb 5 13:37:51 PST 2011
Author: ofv
Date: Sat Feb 5 15:37:51 2011
New Revision: 124975
URL: http://llvm.org/viewvc/llvm-project?rev=124975&view=rev
Log:
Support running tests from the VS IDE and XCode.
Untested, but should work :)
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=124975&r1=124974&r2=124975&view=diff
==============================================================================
--- cfe/trunk/test/CMakeLists.txt (original)
+++ cfe/trunk/test/CMakeLists.txt Sat Feb 5 15:37:51 2011
@@ -50,10 +50,12 @@
if( LLVM_MAIN_SRC_DIR )
set(LIT "${LLVM_SOURCE_DIR}/utils/lit/lit.py")
else()
- set(LIT "${PATH_TO_LLVM_BUILD}/bin/llvm-lit")
+ set(LIT "${PATH_TO_LLVM_BUILD}/bin/${CMAKE_CFG_INTDIR}/llvm-lit")
endif()
- set(CLANG_TEST_EXTRA_ARGS "--path=${CLANG_BINARY_DIR}/bin")
+ if( PATH_TO_LLVM_BUILD )
+ set(CLANG_TEST_EXTRA_ARGS "--path=${CLANG_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR}")
+ endif()
option(CLANG_TEST_USE_VG "Run Clang tests under Valgrind" OFF)
if(CLANG_TEST_USE_VG)
More information about the cfe-commits
mailing list