mirror of https://github.com/OpenTTD/OpenTTD.git
Fix: [CMake] libpng header/library mismatch for macos
This commit is contained in:
parent
fe451b8dc7
commit
54fb4c04e3
|
@ -104,6 +104,11 @@ if(OPTION_TOOLS_ONLY)
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(APPLE)
|
||||||
|
# Avoid searching for headers in Frameworks, and libraries in LIBDIR.
|
||||||
|
set(CMAKE_FIND_FRAMEWORK LAST)
|
||||||
|
endif()
|
||||||
|
|
||||||
# Prefer -pthread over -lpthread, which is often the better option of the two.
|
# Prefer -pthread over -lpthread, which is often the better option of the two.
|
||||||
set(CMAKE_THREAD_PREFER_PTHREAD YES)
|
set(CMAKE_THREAD_PREFER_PTHREAD YES)
|
||||||
# Make sure we have Threads available.
|
# Make sure we have Threads available.
|
||||||
|
|
Loading…
Reference in New Issue