CMakeLists.txt

changeset 50
5dc8b48f80b3
parent 49
7a27d14a4df1
child 54
0b3a5bc4e8a8
equal deleted inserted replaced
49:7a27d14a4df1 50:5dc8b48f80b3
51 set (ZCINEMA_RESOURCES zcinema.qrc) 51 set (ZCINEMA_RESOURCES zcinema.qrc)
52 52
53 if (NOT MSVC) 53 if (NOT MSVC)
54 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -W -Wall") 54 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -W -Wall")
55 else() 55 else()
56 # Some Qt headers (QMap and QHash) trigger C4180, disable that.
57 add_definitions ("/wd4180 /D_CRT_SECURE_NO_WARNINGS /nologo")
56 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Za") 58 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Za")
57 endif() 59 endif()
58 60
59 if (MINGW) 61 if (MINGW)
60 set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc -static-libstdc++ -lpthread -static") 62 set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc -static-libstdc++ -lpthread -static")

mercurial