1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-16 00:00:02 +01:00
VILLASnode/cmake/config/Release.cmake
Philipp Jungkamp 4224f72ecb cmake: disable warning as error on default release builds
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>
2023-06-23 11:53:01 +02:00

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()