diff --git a/CMakeLists.txt b/CMakeLists.txt index e13d99b4f69b..a05b28af6649 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1881,6 +1881,18 @@ if(GNU_GCC OR LLVM_CLANG) endif() target_link_libraries(mixxx-lib PRIVATE FpClassify) +# Cpp Core Guideline Support Library (GSL) +include(FetchContent) + +FetchContent_Declare(GSL + GIT_REPOSITORY "https://github.com/microsoft/GSL" + GIT_TAG "v4.0.0" +) + +FetchContent_MakeAvailable(GSL) + +target_link_libraries(mixxx-lib PRIVATE GSL) + # googletest # Required to use the macro FRIEND_TEST from # in production code