Use the cache for global variables - not PARENT_SCOPE hacks
[ROCm/hip commit: be5a120f90]
Ta zmiana jest zawarta w:
%! (template.HTML=
Chris Kitching)złożyło 2017-10-19 17:08:54 +01:00
1 rodzic
36ac7933cc
złożenie
7298ba77b2
Plik 1 zmieniony
+2
-6
@@ -10,9 +10,7 @@ if (NOT LIT_COMMAND)
|
||||
message(STATUS "hipify-clang's tests are not being built because `lit` is not installed.")
|
||||
endif()
|
||||
|
||||
if (PARENT_SCOPE)
|
||||
set(BUILD_HIPIFY_CLANG 0 PARENT_SCOPE)
|
||||
endif()
|
||||
set(BUILD_HIPIFY_CLANG 0 CACHE INTERNAL "")
|
||||
|
||||
find_package(LLVM PATHS ${HIPIFY_CLANG_LLVM_DIR} REQUIRED)
|
||||
|
||||
@@ -94,6 +92,4 @@ if (HIPIFY_CLANG_TESTS)
|
||||
set_target_properties(test-hipify-clang PROPERTIES FOLDER "Tests")
|
||||
endif()
|
||||
|
||||
if (PARENT_SCOPE)
|
||||
set(BUILD_HIPIFY_CLANG 1 PARENT_SCOPE)
|
||||
endif()
|
||||
set(BUILD_HIPIFY_CLANG 1 CACHE INTERNAL "")
|
||||
Reference in new issue
Zablokuj użytkownika