diff options
author | click <none@none> | 2010-08-30 11:22:54 +0200 |
---|---|---|
committer | click <none@none> | 2010-08-30 11:22:54 +0200 |
commit | b53cec3d5b2283b6c2eafeb34c656351c4966ada (patch) | |
tree | a7d31ea8e3fbb9c0fb8f88197231f79ea4262c6f /cmake/compiler | |
parent | 135a026eff18becbe1282ec2b34e9730385d3984 (diff) |
Buildsystem/MSVC: Ensure same compileoptions for both CXX and C objects
--HG--
branch : trunk
Diffstat (limited to 'cmake/compiler')
-rw-r--r-- | cmake/compiler/msvc/settings.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/compiler/msvc/settings.cmake b/cmake/compiler/msvc/settings.cmake index 26abcd9a864..04ba7279a51 100644 --- a/cmake/compiler/msvc/settings.cmake +++ b/cmake/compiler/msvc/settings.cmake @@ -49,3 +49,8 @@ if(NOT WITH_WARNINGS) message(STATUS "- MSVC: Disabled generic compiletime warnings") endif() endif() + +# Copy CMAKE_CX_FLAGS to CMAKE_C_FLAGS to avoid inconsistency +set(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS}") +set(CMAKE_C_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}") +message(STATUS "- MSVC: Copied CXX_FLAGS to C_FLAGS (consistency)") |