Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show First 20 Lines • Show All 125 Lines • ▼ Show 20 Line(s) | 125 | if (CMAKE_COMPILER_IS_GNUCXX) | |||
---|---|---|---|---|---|
126 | if (CMAKE_SYSTEM_NAME MATCHES Linux) | 126 | if (CMAKE_SYSTEM_NAME MATCHES Linux) | ||
127 | add_definitions (-D_DEFAULT_SOURCE) | 127 | add_definitions (-D_DEFAULT_SOURCE) | ||
128 | # on arm -Wcast-align throws many internal qt warning | 128 | # on arm -Wcast-align throws many internal qt warning | ||
129 | if(NOT CMAKE_SYSTEM_PROCESSOR MATCHES "^arm") | 129 | if(NOT CMAKE_SYSTEM_PROCESSOR MATCHES "^arm") | ||
130 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wcast-align") | 130 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wcast-align") | ||
131 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wcast-align") | 131 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wcast-align") | ||
132 | endif() | 132 | endif() | ||
133 | 133 | | |||
134 | set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-long-long -ansi -Wundef -Werror-implicit-function-declaration -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-common") | 134 | set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-long-long -Wundef -Werror-implicit-function-declaration -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-common") | ||
135 | set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -fno-check-new -fno-common") | 135 | set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Wno-long-long -Wundef -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -fno-check-new -fno-common") | ||
136 | endif (CMAKE_SYSTEM_NAME MATCHES Linux) | 136 | endif (CMAKE_SYSTEM_NAME MATCHES Linux) | ||
137 | endif (CMAKE_COMPILER_IS_GNUCXX) | 137 | endif (CMAKE_COMPILER_IS_GNUCXX) | ||
138 | 138 | | |||
139 | add_definitions (${QT_DEFINITIONS}) | 139 | add_definitions (${QT_DEFINITIONS}) | ||
140 | include_directories("include/QtCrypto/") | 140 | include_directories("include/QtCrypto/") | ||
141 | # for generated files | 141 | # for generated files | ||
142 | include_directories(${CMAKE_BINARY_DIR}) | 142 | include_directories(${CMAKE_BINARY_DIR}) | ||
143 | 143 | | |||
▲ Show 20 Lines • Show All 343 Lines • Show Last 20 Lines |