Author: chandlerc Date: Mon Jul 2 15:14:59 2012 New Revision: 159576 URL: http://llvm.org/viewvc/llvm-project?rev=159576&view=rev Log: Switch from using a lit.cfg-generator variable to the real variable in the standalone mode. We've changed scoping and sequencing of variables being defined and that cause this to start to be unset breaking some cmake users. Thanks to Jordan Rose for the report.
The fix also makes the condition on the preceding line much more sensible. =D 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=159576&r1=159575&r2=159576&view=diff ============================================================================== --- cfe/trunk/test/CMakeLists.txt (original) +++ cfe/trunk/test/CMakeLists.txt Mon Jul 2 15:14:59 2012 @@ -51,7 +51,7 @@ include(FindPythonInterp) if(PYTHONINTERP_FOUND) if( LLVM_MAIN_SRC_DIR ) - set(LIT "${LLVM_SOURCE_DIR}/utils/lit/lit.py") + set(LIT "${LLVM_MAIN_SRC_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. _______________________________________________ cfe-commits mailing list cfe-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits