# HG changeset patch
# Parent 4fd76139b69ec938db4d67ce0927ad5923647ed2
Add FORCE to MAINTAINER mode settings
diff --git a/CMakeLists.txt b/CMakeLists.txt
a
|
b
|
|
198 | 198 | IF(MSVC) |
199 | 199 | SET(CMAKE_CXX_FLAGS "/bigobj ${CMAKE_CXX_FLAGS}") |
200 | 200 | SET( CMAKE_CXX_FLAGS_MAINTAINER "/WX ${CMAKE_CXX_FLAGS_DEBUG}" CACHE STRING |
201 | | "Flags used by the C++ compiler during maintainer builds." |
| 201 | "Flags used by the C++ compiler during maintainer builds." FORCE |
202 | 202 | ) |
203 | 203 | SET( CMAKE_C_FLAGS_MAINTAINER "/WX ${CMAKE_CXX_FLAGS_DEBUG}" CACHE STRING |
204 | | "Flags used by the C compiler during maintainer builds." |
| 204 | "Flags used by the C compiler during maintainer builds." FORCE |
205 | 205 | ) |
206 | 206 | SET( CMAKE_EXE_LINKER_FLAGS_MAINTAINER |
207 | 207 | "${CMAKE_EXE_LINKER_FLAGS_DEBUG}" CACHE STRING |
208 | | "Flags used for linking binaries during maintainer builds." |
| 208 | "Flags used for linking binaries during maintainer builds." FORCE |
209 | 209 | ) |
210 | 210 | SET( CMAKE_SHARED_LINKER_FLAGS_MAINTAINER |
211 | 211 | "${CMAKE_SHARED_LINKER_FLAGS_DEBUG}" CACHE STRING |
212 | | "Flags used by the shared libraries linker during maintainer builds." |
| 212 | "Flags used by the shared libraries linker during maintainer builds." FORCE |
213 | 213 | ) |
214 | 214 | ELSE() |
215 | 215 | SET( CMAKE_CXX_FLAGS_MAINTAINER "-Werror -ggdb -O0" CACHE STRING |
216 | | "Flags used by the C++ compiler during maintainer builds." |
| 216 | "Flags used by the C++ compiler during maintainer builds." FORCE |
217 | 217 | ) |
218 | 218 | SET( CMAKE_C_FLAGS_MAINTAINER "-Werror -O0" CACHE STRING |
219 | | "Flags used by the C compiler during maintainer builds." |
| 219 | "Flags used by the C compiler during maintainer builds." FORCE |
220 | 220 | ) |
221 | 221 | SET( CMAKE_EXE_LINKER_FLAGS_MAINTAINER |
222 | 222 | "${CMAKE_EXE_LINKER_FLAGS_DEBUG}" CACHE STRING |
223 | | "Flags used for linking binaries during maintainer builds." |
| 223 | "Flags used for linking binaries during maintainer builds." FORCE |
224 | 224 | ) |
225 | 225 | SET( CMAKE_SHARED_LINKER_FLAGS_MAINTAINER |
226 | 226 | "${CMAKE_SHARED_LINKER_FLAGS_DEBUG}" CACHE STRING |
227 | | "Flags used by the shared libraries linker during maintainer builds." |
| 227 | "Flags used by the shared libraries linker during maintainer builds." FORCE |
228 | 228 | ) |
229 | 229 | ENDIF() |
230 | 230 | |