forked from OSchip/llvm-project
[cmake] Fix libomptarget/test/CMakeLists.txt
Summary: Should be variable name instead of variable reference. If the variable is somehow unset, it messes up the if condition expression and causes a CMake error. Reviewers: jlpeyton, AndreyChurbanov, Hahnfeld Reviewed By: Hahnfeld Subscribers: mgorny, llvm-commits, openmp-commits Differential Revision: https://reviews.llvm.org/D47221 llvm-svn: 337133
This commit is contained in:
parent
79a423cfa2
commit
6712b8675b
|
@ -1,6 +1,6 @@
|
|||
# CMakeLists.txt file for unit testing OpenMP offloading runtime library.
|
||||
if(NOT "${OPENMP_TEST_COMPILER_ID}" STREQUAL "Clang" OR
|
||||
${OPENMP_TEST_COMPILER_VERSION} VERSION_LESS 6.0.0)
|
||||
if(NOT OPENMP_TEST_COMPILER_ID STREQUAL "Clang" OR
|
||||
OPENMP_TEST_COMPILER_VERSION VERSION_LESS 6.0.0)
|
||||
libomptarget_say("Can only test with Clang compiler in version 6.0.0 or later.")
|
||||
libomptarget_warning_say("The check-libomptarget target will not be available!")
|
||||
return()
|
||||
|
|
Loading…
Reference in New Issue