From e0d1749d99d792a566677a3cffeda554569e03aa Mon Sep 17 00:00:00 2001 From: Luke Valenty Date: Wed, 15 Nov 2023 10:45:23 -0800 Subject: [PATCH] link boost_mp11 as a system library to avoid compiler warnings/errors on it --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7e1754c..c50cfc9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,7 +10,7 @@ add_versioned_package("gh:boostorg/mp11#boost-1.83.0") add_library(safe_arithmetic INTERFACE) target_compile_features(safe_arithmetic INTERFACE cxx_std_20) target_include_directories(safe_arithmetic INTERFACE include) -target_link_libraries(safe_arithmetic INTERFACE boost_mp11) +target_link_libraries_system(safe_arithmetic INTERFACE boost_mp11) if(PROJECT_IS_TOP_LEVEL) add_docs(docs)