Skip to content

Commit

Permalink
Fix: [CMake] libpng header/library mismatch for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
glx22 committed Feb 27, 2021
1 parent fe451b8 commit c6985c0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ if(OPTION_TOOLS_ONLY)
return()
endif()

IF(APPLE)
# Avoid searching for headers in frameworks (like Mono), and libraries in LIBDIR.
set(CMAKE_FIND_FRAMEWORK LAST)
ENDIF()

# Prefer -pthread over -lpthread, which is often the better option of the two.
set(CMAKE_THREAD_PREFER_PTHREAD YES)
# Make sure we have Threads available.
Expand Down

0 comments on commit c6985c0

Please sign in to comment.