From 179fa78da3edb51cd465c2edd47e1d5ff526288d Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Mon, 30 Sep 2013 09:10:01 +0000 Subject: [PATCH] [CMake] Put libcxx-specific module directories to the front of CMAKE_MODULE_PATH. Otherwise if libcxx is built as an LLVM external project (after r191624), "include(config-ix)" will include config-ix.cmake from LLVM, not from libcxx, which will result in misconfigured build tree. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@191657 91177308-0d34-0410-b5e6-96231b3b80d8 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9723d2660..b8f9a03e7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,9 +14,9 @@ set(PACKAGE_BUGREPORT "llvmbugs@cs.uiuc.edu") # Add path for custom modules set(CMAKE_MODULE_PATH - ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake" "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules" + ${CMAKE_MODULE_PATH} ) # Require out of source build.