Skip to content

Commit

Permalink
fix: MP_UNITS_BUILD_IMPORT_STD verification fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mpusz committed Jul 17, 2024
1 parent fb9043b commit f9ae701
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,12 @@ else()
set(${projectPrefix}TARGET_SCOPE "INTERFACE")
endif()

if(${projectPrefix}BUILD_CXX_MODULES)
if(${projectPrefix}BUILD_IMPORT_STD)
if(CMAKE_VERSION VERSION_LESS "3.30")
message(FATAL_ERROR "CMake versions before 3.30 do not support `import std;` properly")
endif()
if(CMAKE_CXX_STANDARD LESS 23)
message(FATAL_ERROR "`import std;` requires at lease C++23")
message(FATAL_ERROR "`import std;` requires at least C++23")
endif()
endif()

Expand Down

0 comments on commit f9ae701

Please sign in to comment.