Remove PARENT_SCOPE from macro that used to be a function
This commit is contained in:
parent
dd329a0ff6
commit
b3e12fab00
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user