Fix a MSVC cmake compiler issue.
sdl-config is not available for MSVC, tested by Reisiger.
This commit is contained in:
parent
7a90bdf220
commit
4006de8ea5
1 changed files with 7 additions and 4 deletions
|
@ -28,10 +28,13 @@ find_package( Gettext REQUIRED )
|
|||
find_package( FriBiDi )
|
||||
find_package( X11 )
|
||||
|
||||
#needed to get some SDL defines in... (as of rev31694 -D_GNU_SOURCE=1 is required!)
|
||||
set(SDL_CONFIG "sdl-config" CACHE STRING "Path to sdl-config script")
|
||||
exec_program(${SDL_CONFIG} ARGS "--cflags" OUTPUT_VARIABLE SDL_CFLAGS)
|
||||
add_definitions(${SDL_CFLAGS})
|
||||
if(NOT MSVC)
|
||||
#needed to get some SDL defines in... (as of rev31694 -D_GNU_SOURCE=1 is required!)
|
||||
set(SDL_CONFIG "sdl-config" CACHE STRING "Path to sdl-config script")
|
||||
exec_program(${SDL_CONFIG} ARGS "--cflags" OUTPUT_VARIABLE SDL_CFLAGS)
|
||||
add_definitions(${SDL_CFLAGS})
|
||||
endif(NOT MSVC)
|
||||
|
||||
|
||||
#check for some compiler/arch specific things and export defines accordingly...
|
||||
INCLUDE (SearchForStuff)
|
||||
|
|
Loading…
Add table
Reference in a new issue