From d266361d97dc99f36efff0e6453a9472575ae3b7 Mon Sep 17 00:00:00 2001
From: Incardona Pietro <incardon@mpi-cbg.de>
Date: Mon, 15 Nov 2021 23:51:46 +0100
Subject: [PATCH] Reinstalling BOOST

---
 CMakeLists.txt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index cecd6d866..3df90c43f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -172,6 +172,10 @@ else()
 endif()
 
 if (Boost_FOUND)
+	if ((CUDA_ON_BACKEND STREQUAL "SEQUENTIAL" OR CUDA_ON_BACKEND STREQUAL "OpenMP") AND NOT Boost_CONTEXT_FOUND)
+        	file(WRITE error_code "202")
+        	message( FATAL_ERROR "BOOST is invalid reinstalling" )
+	endif()
 	file(WRITE optional_boost_libs "${OPTIONAL_BOOST_LIBS}")
 else()
 	file(WRITE error_code "202")
-- 
GitLab