CMake: find_package(Threads) on macOS too

This commit is contained in:
Michael Maltese 2017-01-24 00:09:32 -08:00
parent 4cbd07b81f
commit 7ebb1b4d3d
1 changed files with 1 additions and 6 deletions

View File

@ -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