diff options
author | Dimitry Andric <dimitry@andric.com> | 2019-04-05 22:19:40 +0000 |
---|---|---|
committer | Dimitry Andric <dimitry@andric.com> | 2019-04-05 22:19:40 +0000 |
commit | 8f2d1eb9e8879edf743d7db659bb67a66e4170ac (patch) | |
tree | c216c68795e3a3f2813a8900761c8e436f9361c5 | |
parent | 4a9007cde74b6c700d3a5614fa176b456a86dd66 (diff) | |
download | bcm5719-llvm-8f2d1eb9e8879edf743d7db659bb67a66e4170ac.tar.gz bcm5719-llvm-8f2d1eb9e8879edf743d7db659bb67a66e4170ac.zip |
After rL357618, quote ${CMAKE_THREAD_LIBS_INIT} so CMake does not
complain when the variable is empty. Fixes PR 41401.
llvm-svn: 357828
-rw-r--r-- | openmp/cmake/OpenMPTesting.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openmp/cmake/OpenMPTesting.cmake b/openmp/cmake/OpenMPTesting.cmake index 396460a80d5..52e68aa150f 100644 --- a/openmp/cmake/OpenMPTesting.cmake +++ b/openmp/cmake/OpenMPTesting.cmake @@ -123,7 +123,7 @@ else() # Unfortunately the top-level cmake/config-ix.cmake file mangles CMake's # CMAKE_THREAD_LIBS_INIT variable from the FindThreads package, so work # around that, until it is fixed there. - if(${CMAKE_THREAD_LIBS_INIT} STREQUAL "-lpthread") + if("${CMAKE_THREAD_LIBS_INIT}" STREQUAL "-lpthread") set(OPENMP_TEST_COMPILER_THREAD_FLAGS "-pthread") else() set(OPENMP_TEST_COMPILER_THREAD_FLAGS "${CMAKE_THREAD_LIBS_INIT}") |