CMake: find_package(Threads) on macOS too
This commit is contained in:
parent
4cbd07b81f
commit
7ebb1b4d3d
|
@ -380,12 +380,7 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD|NetBSD")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Dolphin requires threads.
|
# Dolphin requires threads.
|
||||||
# The Apple build may not need an explicit flag because one of the
|
find_package(Threads)
|
||||||
# frameworks may already provide it.
|
|
||||||
# But for non-OSX systems, we will use the CMake Threads package.
|
|
||||||
IF(NOT APPLE)
|
|
||||||
FIND_PACKAGE(Threads)
|
|
||||||
ENDIF(NOT APPLE)
|
|
||||||
|
|
||||||
if(NOT CMAKE_BUILD_TYPE)
|
if(NOT CMAKE_BUILD_TYPE)
|
||||||
set(CMAKE_BUILD_TYPE "Release" CACHE STRING
|
set(CMAKE_BUILD_TYPE "Release" CACHE STRING
|
||||||
|
|
Loading…
Reference in New Issue