fix: previous commit put MSVC code in an incorrect scope

This commit is contained in:
Mateusz Pusz
2025-02-15 18:41:50 +01:00
parent 8454949adb
commit 7102a4f63d

View File

@ -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 <filename>' 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 <filename>' in the purview of module 'module-name-1' appears erroneous
target_compile_options(mp-units-core PUBLIC "/wd5244")
endif()
endif()