From 8f2d1eb9e8879edf743d7db659bb67a66e4170ac Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Fri, 5 Apr 2019 22:19:40 +0000 Subject: After rL357618, quote ${CMAKE_THREAD_LIBS_INIT} so CMake does not complain when the variable is empty. Fixes PR 41401. llvm-svn: 357828 --- openmp/cmake/OpenMPTesting.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openmp') 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}") -- cgit v1.2.3