diff --git a/CMakeLists.txt b/CMakeLists.txt index 386bb2f..22e1092 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,11 @@ cmake_minimum_required(VERSION 3.28) -cmake_policy(SET CMP0167 NEW) # Suppress FindBoost removal warning +# CMP0167 (FindBoost removed from CMake) only exists from 3.30, and this +# project asks for 3.28 — so setting it unconditionally makes every older +# CMake fail at line two with "policy is not known to this version". Guarded, +# a newer CMake still gets the quiet FindBoost it was added for. +if(POLICY CMP0167) + cmake_policy(SET CMP0167 NEW) +endif() # ── CUDA is optional (not available on macOS) ─────────────────── include(CheckLanguage)