Remove PARENT_SCOPE from macro that used to be a function

This commit is contained in:
S David 2024-05-18 10:19:19 -04:00
parent dd329a0ff6
commit b3e12fab00

View File

@ -1,6 +1,8 @@
# Util.cmake
# License: Unlicense
include(BuildOptions)
macro(ASSERT condition message)
if(NOT ${condition})
message(FATAL_ERROR ${message})
@ -40,10 +42,8 @@ macro(disable_deprecated_features)
endmacro()
macro(disable_tests_if_subproject)
option(BUILD_TESTING "Build unit tests" ON)
if (DEFINED PROJECT_NAME)
set(BUILD_TESTING OFF PARENT_SCOPE)
set(BUILD_TESTING OFF)
endif()
endmacro()