Skip to content

Commit

Permalink
[CMake] Passthrough CMAKE_SYSROOT to external projects
Browse files Browse the repository at this point in the history
Differential Revision: https://reviews.llvm.org/D39029

llvm-svn: 317744
  • Loading branch information
petrhosek committed Nov 9, 2017
1 parent d64af52 commit cf1fee2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm/cmake/modules/LLVMExternalProjectUtils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ function(llvm_ExternalProject_Add name source_dir)
CMAKE_ARGS ${${nameCanon}_CMAKE_ARGS}
${compiler_args}
-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}
-DCMAKE_SYSROOT=${CMAKE_SYSROOT}
-DLLVM_BINARY_DIR=${PROJECT_BINARY_DIR}
-DLLVM_CONFIG_PATH=$<TARGET_FILE:llvm-config>
-DLLVM_ENABLE_WERROR=${LLVM_ENABLE_WERROR}
Expand Down

0 comments on commit cf1fee2

Please sign in to comment.