mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
Buildsystem/MSVC: Ensure same compileoptions for both CXX and C objects
--HG-- branch : trunk
This commit is contained in:
@@ -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)")
|
||||
|
||||
Reference in New Issue
Block a user