Skip to content

Commit 1859544

Browse files
author
Alexey Samsonov
committed
[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. llvm-svn: 191657
1 parent ddec3e4 commit 1859544

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ set(PACKAGE_BUGREPORT "llvmbugs@cs.uiuc.edu")
1414

1515
# Add path for custom modules
1616
set(CMAKE_MODULE_PATH
17-
${CMAKE_MODULE_PATH}
1817
"${CMAKE_CURRENT_SOURCE_DIR}/cmake"
1918
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules"
19+
${CMAKE_MODULE_PATH}
2020
)
2121

2222
# Require out of source build.

0 commit comments

Comments
 (0)