mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-01-24 17:26:41 +00:00
Fix windres error in Windows MSYS2 compilation
This commit is contained in:
parent
9097df9ea1
commit
ec511b5fd7
1 changed files with 6 additions and 13 deletions
|
@ -206,18 +206,11 @@ if(NOT SDL_FOUND)
|
||||||
set(SDLMAIN_LIBRARY "${SDLDIR}/lib/win32/SDLmain.lib" CACHE FILEPATH "Where the SDLmain library can be found" FORCE)
|
set(SDLMAIN_LIBRARY "${SDLDIR}/lib/win32/SDLmain.lib" CACHE FILEPATH "Where the SDLmain library can be found" FORCE)
|
||||||
set(SDL_LIBRARY "${SDLDIR}/lib/win32/SDL.lib" CACHE FILEPATH "Where the SDL library can be found" FORCE)
|
set(SDL_LIBRARY "${SDLDIR}/lib/win32/SDL.lib" CACHE FILEPATH "Where the SDL library can be found" FORCE)
|
||||||
endif(AQUARIA_USE_SDL2)
|
endif(AQUARIA_USE_SDL2)
|
||||||
set(SDL_LIBRARY ${SDLMAIN_LIBRARY} ${SDL_LIBRARY}) # not seen by user
|
if(MSYS)
|
||||||
elseif(WIN32_TRUE)
|
set(SDL_LIBRARY -lmingw32 ${SDLMAIN_LIBRARY} ${SDL_LIBRARY}) # not seen by user
|
||||||
set(SDL_INCLUDE_DIR "${SDLDIR}/include" CACHE PATH "SDL include directory" FORCE)
|
else(MSYS)
|
||||||
message(STATUS "Using internal copy of SDL")
|
set(SDL_LIBRARY ${SDLMAIN_LIBRARY} ${SDL_LIBRARY}) # not seen by user
|
||||||
if(AQUARIA_USE_SDL2)
|
endif(MSYS())
|
||||||
set(SDLMAIN_LIBRARY "${SDLDIR}/lib/win32/SDL2main.lib" CACHE FILEPATH "Where the SDL2main library can be found" FORCE)
|
|
||||||
set(SDL_LIBRARY "${SDLDIR}/lib/win32/SDL2.lib" CACHE FILEPATH "Where the SDL2 library can be found" FORCE)
|
|
||||||
else(AQUARIA_USE_SDL2)
|
|
||||||
set(SDLMAIN_LIBRARY "${SDLDIR}/lib/win32/SDLmain.lib" CACHE FILEPATH "Where the SDLmain library can be found" FORCE)
|
|
||||||
set(SDL_LIBRARY "${SDLDIR}/lib/win32/SDL.lib" CACHE FILEPATH "Where the SDL library can be found" FORCE)
|
|
||||||
endif(AQUARIA_USE_SDL2)
|
|
||||||
set(SDL_LIBRARY -lmingw32 ${SDLMAIN_LIBRARY} ${SDL_LIBRARY}) # not seen by user
|
|
||||||
else(MACOSX)
|
else(MACOSX)
|
||||||
message(SEND_ERROR "We don't have a prebuilt SDL for this platform.")
|
message(SEND_ERROR "We don't have a prebuilt SDL for this platform.")
|
||||||
endif(MACOSX)
|
endif(MACOSX)
|
||||||
|
@ -379,7 +372,7 @@ IF(UNIX AND NOT HAIKU)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
IF(CMAKE_COMPILER_IS_GNUCC)
|
IF(CMAKE_COMPILER_IS_GNUCC)
|
||||||
ADD_DEFINITIONS(-pipe -fsigned-char)
|
#ADD_DEFINITIONS(-pipe -fsigned-char)
|
||||||
#ADD_DEFINITIONS(-Wall)
|
#ADD_DEFINITIONS(-Wall)
|
||||||
|
|
||||||
# See if -fno-stack-protector is available to us.
|
# See if -fno-stack-protector is available to us.
|
||||||
|
|
Loading…
Reference in a new issue