Skip to content

Commit f9ae701

Browse files
committed
fix: MP_UNITS_BUILD_IMPORT_STD verification fixed
1 parent fb9043b commit f9ae701

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,12 @@ else()
126126
set(${projectPrefix}TARGET_SCOPE "INTERFACE")
127127
endif()
128128

129-
if(${projectPrefix}BUILD_CXX_MODULES)
129+
if(${projectPrefix}BUILD_IMPORT_STD)
130130
if(CMAKE_VERSION VERSION_LESS "3.30")
131131
message(FATAL_ERROR "CMake versions before 3.30 do not support `import std;` properly")
132132
endif()
133133
if(CMAKE_CXX_STANDARD LESS 23)
134-
message(FATAL_ERROR "`import std;` requires at lease C++23")
134+
message(FATAL_ERROR "`import std;` requires at least C++23")
135135
endif()
136136
endif()
137137

0 commit comments

Comments
 (0)