Skip to content

Commit 7102a4f

Browse files
committed
fix: previous commit put MSVC code in an incorrect scope
1 parent 8454949 commit 7102a4f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/core/CMakeLists.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,11 @@ if(${projectPrefix}BUILD_CXX_MODULES)
126126
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 18)
127127
target_compile_options(mp-units-core PUBLIC "-Wno-include-angled-in-module-purview")
128128
endif()
129+
endif()
129130

130-
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
131-
# '#include <filename>' in the purview of module 'module-name-1' appears erroneous
132-
target_compile_options(mp-units-core PUBLIC "/wd5244")
133-
endif()
131+
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
132+
# '#include <filename>' in the purview of module 'module-name-1' appears erroneous
133+
target_compile_options(mp-units-core PUBLIC "/wd5244")
134134
endif()
135135
endif()
136136

0 commit comments

Comments
 (0)