[HIPIFY][fix] cmake: NO_DEFAULT_PATH is strongly needed in find_package for LLVM

Otherwise LLVM will be searched in system folders.
This commit is contained in:
Evgeny Mankov
2017-10-24 16:35:10 +03:00
parent e324e77184
commit 4a0228cedb
+1 -1
Vedi File
@@ -4,7 +4,7 @@ project(hipify-clang)
set(BUILD_HIPIFY_CLANG 0 CACHE INTERNAL "")
if (HIPIFY_CLANG_LLVM_DIR)
find_package(LLVM PATHS ${HIPIFY_CLANG_LLVM_DIR} REQUIRED)
find_package(LLVM PATHS ${HIPIFY_CLANG_LLVM_DIR} REQUIRED NO_DEFAULT_PATH)
else()
message(STATUS "hipify-clang will not be built. To build it please specify absolute path to LLVM 3.8 or higher using HIPIFY_CLANG_LLVM_DIR")
return()