fix: handling of MP_UNITS_BUILD_CXX_MODULES fixed

This commit is contained in:
Mateusz Pusz
2024-04-25 19:33:30 +02:00
parent f770057052
commit 79a1d61c5c

View File

@ -95,7 +95,7 @@ if(${projectPrefix}API_NO_CRTP STREQUAL "TRUE" AND NOT ${projectPrefix}EXPLICIT_
message(FATAL_ERROR "`NO_CRTP` mode enabled but explicit `this` parameter is not supported")
endif()
if(${projectPrefix}BUILD_CXX_MODULES STREQUAL "TRUE")
if(${projectPrefix}BUILD_CXX_MODULES)
if(CMAKE_VERSION VERSION_LESS "3.29")
message(FATAL_ERROR "CMake versions before 3.29 do not support C++ modules properly")
endif()