Mingw: Link with dxguid (fix linking) and add -fsigned-char to CMAKE_CXX_FLAGS (fix building RC object)

This commit is contained in:
Pali Rohár 2012-02-25 10:23:53 +01:00
parent 85e0aac1e9
commit 5b057a8ae1

View file

@ -583,6 +583,10 @@ if (WIN32 AND MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE=1) add_definitions(-D_CRT_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE=1)
endif() endif()
if (WIN32 AND MINGW)
set(stratagus_LIBS ${stratagus_LIBS} dxguid)
endif()
if(APPLE) if(APPLE)
add_definitions(-DUSE_MAC) add_definitions(-DUSE_MAC)
add_definitions(-D__unix) add_definitions(-D__unix)
@ -609,8 +613,8 @@ endif()
# Stratagus needs to have char by default signed # Stratagus needs to have char by default signed
# No idea how to tell this to other compilers # No idea how to tell this to other compilers
if(CMAKE_COMPILER_IS_GNUCC) if(CMAKE_COMPILER_IS_GNUCXX)
add_definitions(-fsigned-char) set(CMAKE_CXX_FLAGS "-fsigned-char")
endif() endif()
check_function_exists("strcasestr" HAVE_STRCASESTR) check_function_exists("strcasestr" HAVE_STRCASESTR)