From c8a95068e5b4ccdec74dba52ab74b5e431a42ce9 Mon Sep 17 00:00:00 2001 From: Shauren Date: Sat, 20 Jun 2020 13:03:13 +0200 Subject: [PATCH] Build: Fix gcc pch builds --- dep/boost/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dep/boost/CMakeLists.txt b/dep/boost/CMakeLists.txt index 1714b3724b5..c54aecfea7c 100644 --- a/dep/boost/CMakeLists.txt +++ b/dep/boost/CMakeLists.txt @@ -38,6 +38,11 @@ if(WIN32) set(Boost_USE_STATIC_RUNTIME OFF) endif() +if (CMAKE_VERSION VERSION_LESS "3.16.0") + # boost's own cmake file adds extra compile definitions that cotire fails to pick up + set(Boost_NO_BOOST_CMAKE ON) +endif() + include (CheckCXXSourceCompiles) check_cxx_source_compiles("