From 2440fc9e87b40b7224e927bfc3b914146d0cd4cf Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Sat, 2 Sep 2023 23:18:21 +0400 Subject: [PATCH] Workaround cmake bug 25222 --- external/gsl/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/external/gsl/CMakeLists.txt b/external/gsl/CMakeLists.txt index af8b9b42..8eaf19c5 100644 --- a/external/gsl/CMakeLists.txt +++ b/external/gsl/CMakeLists.txt @@ -22,6 +22,11 @@ if (DESKTOP_APP_USE_PACKAGED) endif() ]] +# https://gitlab.kitware.com/cmake/cmake/-/issues/25222 +if (NOT EXISTS ${third_party_loc}/GSL/include) + message(FATAL_ERROR "Guidelines Support Library is not found") +endif() + target_include_directories(external_gsl SYSTEM INTERFACE ${third_party_loc}/GSL/include