Fixed cmake problems (warnings and incorrect compiler flags).

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14295 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2013-10-23 11:05:53 +00:00
parent 4775e3908c
commit 489ac88ff1

View File

@ -1,5 +1,7 @@
# CMakeLists.txt - wiiuse
cmake_minimum_required(VERSION 2.8.1)
set(WIIUSE_SOURCES
classic.c
dynamics.c
@ -29,7 +31,7 @@ endif()
if(MSVC)
add_definitions("/DWIIUSE_STATIC")
add_library(wiiuse STATIC ${WIIUSE_SOURCES})
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}" /MTd)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /MTd")
else()
add_library(wiiuse ${WIIUSE_SOURCES})
endif()