aboutsummaryrefslogtreecommitdiff
path: root/openmp/cmake
diff options
context:
space:
mode:
authorDimitry Andric <dimitry@andric.com>2019-04-05 22:19:40 +0000
committerDimitry Andric <dimitry@andric.com>2019-04-05 22:19:40 +0000
commit8f2d1eb9e8879edf743d7db659bb67a66e4170ac (patch)
treec216c68795e3a3f2813a8900761c8e436f9361c5 /openmp/cmake
parent4a9007cde74b6c700d3a5614fa176b456a86dd66 (diff)
downloadllvm-8f2d1eb9e8879edf743d7db659bb67a66e4170ac.zip
llvm-8f2d1eb9e8879edf743d7db659bb67a66e4170ac.tar.gz
llvm-8f2d1eb9e8879edf743d7db659bb67a66e4170ac.tar.bz2
After rL357618, quote ${CMAKE_THREAD_LIBS_INIT} so CMake does not
complain when the variable is empty. Fixes PR 41401. llvm-svn: 357828
Diffstat (limited to 'openmp/cmake')
-rw-r--r--openmp/cmake/OpenMPTesting.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/openmp/cmake/OpenMPTesting.cmake b/openmp/cmake/OpenMPTesting.cmake
index 396460a..52e68aa 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}")