Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show First 20 Lines • Show All 258 Lines • ▼ Show 20 Line(s) | |||||
259 | 259 | | |||
260 | if(CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") | 260 | if(CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") | ||
261 | # be more pedantic about common symbols | 261 | # be more pedantic about common symbols | ||
262 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-common -Wextra") | 262 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-common -Wextra") | ||
263 | 263 | | |||
264 | if(CMAKE_CXX_COMPILER_ID MATCHES "GNU") | 264 | if(CMAKE_CXX_COMPILER_ID MATCHES "GNU") | ||
265 | set(IS_GNU 1) | 265 | set(IS_GNU 1) | ||
266 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wlogical-op") | 266 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wlogical-op") | ||
267 | | ||||
268 | # TODO: remove multiple definitions of payeeIdentifierLoader::createPayeeIdentifierFromSqlDatabase | ||||
269 | if(CMAKE_SYSTEM_NAME MATCHES "Windows") | ||||
270 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Xlinker --allow-multiple-definition") | ||||
271 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Xlinker --allow-multiple-definition") | ||||
272 | endif() | ||||
267 | endif() | 273 | endif() | ||
268 | 274 | | |||
269 | # DebugKMM, Debugfull, Profile | 275 | # DebugKMM, Debugfull, Profile | ||
270 | set(CMAKE_CXX_FLAGS_DEBUGKMM | 276 | set(CMAKE_CXX_FLAGS_DEBUGKMM | ||
271 | "-g -O2 -fno-reorder-blocks -fno-schedule-insns -fno-inline") | 277 | "-g -O2 -fno-reorder-blocks -fno-schedule-insns -fno-inline") | ||
272 | set(CMAKE_CXX_FLAGS_DEBUGFULL | 278 | set(CMAKE_CXX_FLAGS_DEBUGFULL | ||
273 | "-g3 -fno-inline") | 279 | "-g3 -fno-inline") | ||
274 | set(CMAKE_CXX_FLAGS_PROFILE | 280 | set(CMAKE_CXX_FLAGS_PROFILE | ||
▲ Show 20 Lines • Show All 95 Lines • Show Last 20 Lines |