From 79a1d61c5c03c0c157791d665043784dff003bb7 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Thu, 25 Apr 2024 19:33:30 +0200 Subject: [PATCH] fix: handling of MP_UNITS_BUILD_CXX_MODULES fixed --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ff1408f5..363634aa 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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()