From 90688364bc92e62fded67a6162a6d784d75a6e06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johel=20Ernesto=20Guerrero=20Pe=C3=B1a?= Date: Tue, 10 Oct 2023 08:02:23 -0400 Subject: [PATCH] build(cmake): use correct variable to branch modules targets --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 105c27caf..6f5d47978 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -54,7 +54,7 @@ add_library(mp-units::mp-units ALIAS mp-units) install(TARGETS mp-units EXPORT mp-unitsTargets) # C++ modules -if(CMAKE_EXPERIMENTAL_CXX_MODULE_CMAKE_API) +if(${projectPrefix}BUILD_MODULES) add_library(mp-units-modules STATIC) add_library(mp-units::modules ALIAS mp-units-modules) target_sources(