diff --git a/CMakeLists.txt b/CMakeLists.txt index e55068bcce..6b536af832 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,7 +39,7 @@ if(NOT COMMAND serenity_option) set(${ARGV}) endmacro() endif() -include(serenity_options) +include(serenity_options NO_POLICY_SCOPE) include(setup_ccache) diff --git a/Meta/CMake/lagom_options.cmake b/Meta/CMake/lagom_options.cmake index fa0efbd4a1..7789ca234d 100644 --- a/Meta/CMake/lagom_options.cmake +++ b/Meta/CMake/lagom_options.cmake @@ -2,7 +2,7 @@ # Options specific to the Lagom (host) build # -include(${CMAKE_CURRENT_LIST_DIR}/common_options.cmake) +include(${CMAKE_CURRENT_LIST_DIR}/common_options.cmake NO_POLICY_SCOPE) serenity_option(ENABLE_ADDRESS_SANITIZER OFF CACHE BOOL "Enable address sanitizer testing in gcc/clang") serenity_option(ENABLE_MEMORY_SANITIZER OFF CACHE BOOL "Enable memory sanitizer testing in gcc/clang") diff --git a/Meta/CMake/serenity_options.cmake b/Meta/CMake/serenity_options.cmake index 580b65ab3c..3a8d78b504 100644 --- a/Meta/CMake/serenity_options.cmake +++ b/Meta/CMake/serenity_options.cmake @@ -2,7 +2,7 @@ # Options specific to the Serenity (target) build # -include(${CMAKE_CURRENT_LIST_DIR}/common_options.cmake) +include(${CMAKE_CURRENT_LIST_DIR}/common_options.cmake NO_POLICY_SCOPE) serenity_option(ENABLE_PCI_IDS_DOWNLOAD ON CACHE BOOL "Enable download of the pci.ids database at build time") serenity_option(ENABLE_USB_IDS_DOWNLOAD ON CACHE BOOL "Enable download of the usb.ids database at build time") diff --git a/Meta/Lagom/CMakeLists.txt b/Meta/Lagom/CMakeLists.txt index 56cfcbe139..1ae5b7a725 100644 --- a/Meta/Lagom/CMakeLists.txt +++ b/Meta/Lagom/CMakeLists.txt @@ -34,7 +34,7 @@ if(NOT COMMAND serenity_option) endif() include(check_for_dependencies) -include(lagom_options) +include(lagom_options NO_POLICY_SCOPE) if(ENABLE_ALL_THE_DEBUG_MACROS) include(all_the_debug_macros)