Update macos search paths

This commit is contained in:
Marcus Minhorst 2025-09-20 19:55:37 -04:00 committed by Rachael Alexanderson
commit 8479aef773
2 changed files with 7 additions and 5 deletions

View file

@ -310,6 +310,8 @@ else()
set( DEB_C_FLAGS "" )
if( APPLE )
list(PREPEND CMAKE_PREFIX_PATH "/opt/local") # port
list(PREPEND CMAKE_PREFIX_PATH "/opt/homebrew") # brew
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.13")
if( CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
# If we're compiling with a custom GCC on the Mac (which we know since g++-4.2 doesn't support C++11) statically link libgcc.

View file

@ -20,7 +20,6 @@
# this module will try to find on your behalf.) Also for OS X, this
# module will automatically add the -framework Cocoa on your behalf.
#
#
# Additional Note: If you see an empty SDL2_LIBRARY_TEMP in your configuration
# and no SDL2_LIBRARY, it means CMake did not find your SDL2 library
# (SDL2.dll, libsdl2.so, SDL2.framework, etc).
@ -29,7 +28,6 @@
# as appropriate. These values are used to generate the final SDL2_LIBRARY
# variable, but when these values are unset, SDL2_LIBRARY does not get created.
#
#
# $SDL2DIR is an environment variable that would
# correspond to the ./configure --prefix=$SDL2DIR
# used in building SDL2.
@ -72,8 +70,9 @@ FIND_PATH(SDL2_INCLUDE_DIR SDL.h
/sw # Fink
/opt/local # DarwinPorts
/opt/csw # Blastwave
/opt/homebrew
/opt
/boot/system/develop/headers/SDL2 #Hiaku OS
/boot/system/develop/headers/SDL2 #Haiku OS
)
#MESSAGE("SDL2_INCLUDE_DIR is ${SDL2_INCLUDE_DIR}")
@ -86,10 +85,10 @@ FIND_LIBRARY(SDL2_LIBRARY_TEMP
/sw
/opt/local
/opt/csw
/opt/homebrew
/opt
/system/lib #Hiaku OS
/system/lib #Haiku OS
)
#MESSAGE("SDL2_LIBRARY_TEMP is ${SDL2_LIBRARY_TEMP}")
IF(NOT SDL2_BUILDING_LIBRARY)
@ -107,6 +106,7 @@ IF(NOT SDL2_BUILDING_LIBRARY)
/sw
/opt/local
/opt/csw
/opt/homebrew
/opt
)
ENDIF(NOT ${SDL2_INCLUDE_DIR} MATCHES ".framework")