mirror of https://github.com/PCSX2/pcsx2.git
CMake: Prevent finding Mono.framework libpng
This commit is contained in:
parent
9750cfe6bf
commit
954e9fc7c1
|
@ -31,7 +31,12 @@ else()
|
|||
set(OpenGL_GL_PREFERENCE GLVND)
|
||||
find_package(OpenGL REQUIRED)
|
||||
endif()
|
||||
# On macOS, Mono.framework contains an ancient version of libpng. We don't want that.
|
||||
# Avoid it by telling cmake to avoid finding frameworks while we search for libpng.
|
||||
set(FIND_FRAMEWORK_BACKUP ${CMAKE_FIND_FRAMEWORK})
|
||||
set(CMAKE_FIND_FRAMEWORK NEVER)
|
||||
find_package(PNG REQUIRED)
|
||||
set(CMAKE_FIND_FRAMEWORK ${FIND_FRAMEWORK_BACKUP})
|
||||
find_package(Vtune)
|
||||
|
||||
if(NOT PCSX2_CORE)
|
||||
|
|
Loading…
Reference in New Issue