From 5d7becf0ce15cb2bc9639bd95f4bacd92a1668b4 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Thu, 28 Dec 2023 09:38:43 +0100 Subject: [PATCH] fix: `mp-units-core-module` now links with `mp-units::utility` --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 0c5a3fe752..6fe4377c70 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -65,7 +65,7 @@ if(${projectPrefix}BUILD_CXX_MODULES) "mp-units-core.cpp" ) target_compile_definitions(mp-units-core-module INTERFACE MP_UNITS_MODULES) - target_link_libraries(mp-units-core-module PRIVATE mp-units::core PUBLIC mp-units::core-macros) + target_link_libraries(mp-units-core-module PRIVATE mp-units::core mp-units::utility PUBLIC mp-units::core-macros) if(CMAKE_CXX_COMPILER_ID MATCHES ".*Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 18) target_compile_options(mp-units-core-module PUBLIC "-Wno-include-angled-in-module-purview") endif()