mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-01 19:34:29 +02:00
fix: MP_UNITS_BUILD_IMPORT_STD
verification fixed
This commit is contained in:
@@ -126,12 +126,12 @@ else()
|
|||||||
set(${projectPrefix}TARGET_SCOPE "INTERFACE")
|
set(${projectPrefix}TARGET_SCOPE "INTERFACE")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(${projectPrefix}BUILD_CXX_MODULES)
|
if(${projectPrefix}BUILD_IMPORT_STD)
|
||||||
if(CMAKE_VERSION VERSION_LESS "3.30")
|
if(CMAKE_VERSION VERSION_LESS "3.30")
|
||||||
message(FATAL_ERROR "CMake versions before 3.30 do not support `import std;` properly")
|
message(FATAL_ERROR "CMake versions before 3.30 do not support `import std;` properly")
|
||||||
endif()
|
endif()
|
||||||
if(CMAKE_CXX_STANDARD LESS 23)
|
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()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user