build: add macros to disable and enable CMake developer warnings

This commit is contained in:
Gabriel Ferreira
2023-11-18 18:12:57 -03:00
parent afe0c6b0f2
commit 9a8fe0b657

View File

@@ -24,6 +24,14 @@ list(APPEND CMAKE_MODULE_PATH
)
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/build-support/3rd-party")
macro(disable_cmake_warnings)
set(CMAKE_SUPPRESS_DEVELOPER_WARNINGS 1 CACHE BOOL "" FORCE)
endmacro()
macro(enable_cmake_warnings)
set(CMAKE_SUPPRESS_DEVELOPER_WARNINGS 0 CACHE BOOL "" FORCE)
endmacro()
# Set options that are not really meant to be changed
include(ns3-hidden-settings)