Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Perhaps some additions to FindSDL2.cmake (if present) might also be needed if not statically linking?

Something like this:

SET(SDL2_SEARCH_PATHS
  ~/Library/Frameworks
  /Library/Frameworks
  /usr/local
  /usr
  /sw # Fink
  /opt/local # DarwinPorts
  /opt/csw # Blastwave
  /opt
  /boot/system/lib # Haiku
)

FIND_PATH(SDL2_INCLUDE_DIR SDL.h
  HINTS
  $ENV{SDL2DIR}
  PATH_SUFFIXES include/SDL2 include headers/SDL2 headers/x86/SDL2    # Last two are for Haiku
  PATHS ${SDL2_SEARCH_PATHS}
)

Source