From 7102a4f63d3efe10ecb10486c44eedf80c0f9976 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Sat, 15 Feb 2025 18:41:50 +0100 Subject: [PATCH] fix: previous commit put MSVC code in an incorrect scope --- src/core/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 6302a9cb..73a8dc65 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -126,11 +126,11 @@ if(${projectPrefix}BUILD_CXX_MODULES) if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 18) target_compile_options(mp-units-core PUBLIC "-Wno-include-angled-in-module-purview") endif() + endif() - if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") - # '#include ' in the purview of module 'module-name-1' appears erroneous - target_compile_options(mp-units-core PUBLIC "/wd5244") - endif() + if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") + # '#include ' in the purview of module 'module-name-1' appears erroneous + target_compile_options(mp-units-core PUBLIC "/wd5244") endif() endif()