mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-16 00:00:02 +01:00

A new warning introduced by the compiler on a target system should not break the build on that target. You can override that behaviour using VILLAS_COMPILE_WARNING_AS_ERROR. Signed-off-by: Philipp Jungkamp <Philipp.Jungkamp@opal-rt.com>
11 lines
460 B
CMake
11 lines
460 B
CMake
# CMakeLists.txt.
|
|
#
|
|
# @author Steffen Vogel <post@steffenvogel.de>
|
|
# @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
|
|
# @license Apache 2.0
|
|
###################################################################################
|
|
|
|
# don't treat warnings as errors on normal release builds
|
|
if("${CMAKE_BUILD_TYPE}" STREQUAL "Release" AND NOT DEFINED VILLAS_COMPILE_WARNING_AS_ERROR)
|
|
set(VILLAS_COMPILE_WARNING_AS_ERROR OFF)
|
|
endif()
|