mirror of
https://github.com/dhewm/dhewm3.git
synced 2024-11-27 06:32:27 +00:00
cmake: set SDL_BUILDING_LIBRARY for win32 and osx
While that's a lie it makes FindSDL skip SDLmain, which we have in tree and compile ourselves.
This commit is contained in:
parent
e62e3870a3
commit
826d0f7b7b
1 changed files with 4 additions and 0 deletions
|
@ -98,6 +98,10 @@ include_directories(${VORBISFILE_INCLUDE_DIR})
|
|||
find_package(OpenAL REQUIRED)
|
||||
include_directories(${OPENAL_INCLUDE_DIR})
|
||||
|
||||
if(APPLE OR WIN32)
|
||||
# skip SDLmain
|
||||
set(SDL_BUILDING_LIBRARY TRUE)
|
||||
endif()
|
||||
find_package(SDL REQUIRED)
|
||||
include_directories(${SDL_INCLUDE_DIR})
|
||||
|
||||
|
|
Loading…
Reference in a new issue