forked from OSchip/llvm-project
After rL357618, quote ${CMAKE_THREAD_LIBS_INIT} so CMake does not
complain when the variable is empty. Fixes PR 41401. llvm-svn: 357828
This commit is contained in:
parent
4a9007cde7
commit
8f2d1eb9e8
|
@ -123,7 +123,7 @@ else()
|
||||||
# Unfortunately the top-level cmake/config-ix.cmake file mangles CMake's
|
# Unfortunately the top-level cmake/config-ix.cmake file mangles CMake's
|
||||||
# CMAKE_THREAD_LIBS_INIT variable from the FindThreads package, so work
|
# CMAKE_THREAD_LIBS_INIT variable from the FindThreads package, so work
|
||||||
# around that, until it is fixed there.
|
# 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")
|
set(OPENMP_TEST_COMPILER_THREAD_FLAGS "-pthread")
|
||||||
else()
|
else()
|
||||||
set(OPENMP_TEST_COMPILER_THREAD_FLAGS "${CMAKE_THREAD_LIBS_INIT}")
|
set(OPENMP_TEST_COMPILER_THREAD_FLAGS "${CMAKE_THREAD_LIBS_INIT}")
|
||||||
|
|
Loading…
Reference in New Issue