chore(cmake): only use warnings as errors on release builds
This commit is contained in:
parent
07a7d7fb52
commit
567c1ae1c0
@ -36,15 +36,19 @@ SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${ARCH_DIR}/lib)
|
||||
SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${ARCH_DIR}/lib)
|
||||
|
||||
IF (MSVC)
|
||||
ADD_COMPILE_OPTIONS(/W4 /WX)
|
||||
IF (CMAKE_BUILD_TYPE STREQUAL "Release" OR CMAKE_BUILD_TYPE STREQUAL "MinSizeRel")
|
||||
ADD_COMPILE_OPTIONS(/W4 /WX)
|
||||
ENDIF ()
|
||||
ELSE ()
|
||||
ADD_COMPILE_OPTIONS(-Wall -Wextra -Werror -Wpedantic)
|
||||
IF (CMAKE_BUILD_TYPE STREQUAL "Release" OR CMAKE_BUILD_TYPE STREQUAL "MinSizeRel")
|
||||
ADD_COMPILE_OPTIONS(-Wall -Wextra -Werror -Wpedantic)
|
||||
ENDIF ()
|
||||
ENDIF ()
|
||||
|
||||
INCLUDE_DIRECTORIES(engine/)
|
||||
|
||||
SET(EngineSources
|
||||
engine/src/core/test.cpp
|
||||
engine/src/core/ICEApplication.cpp
|
||||
)
|
||||
|
||||
SET(PrecompiledHeader "pch.h")
|
||||
|
Loading…
x
Reference in New Issue
Block a user