From 9271ddf1c9092bc50dd9faf50872edff69fae194 Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Fri, 10 Feb 2017 19:01:13 +0100 Subject: [PATCH] Same for CGAL_Core/src/CGAL_Core/CMakeLists.txt --- CGAL_Core/src/CGAL_Core/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CGAL_Core/src/CGAL_Core/CMakeLists.txt b/CGAL_Core/src/CGAL_Core/CMakeLists.txt index b07019a9fe1..b9dba585d4d 100644 --- a/CGAL_Core/src/CGAL_Core/CMakeLists.txt +++ b/CGAL_Core/src/CGAL_Core/CMakeLists.txt @@ -2,6 +2,13 @@ message("Configuring libCGAL_Core") use_essential_libs() +if (NOT MSVC) + # See the release notes of CGAL-4.10: CGAL_Core now requires + # Boost.Thread, with all compilers but MSVC. + find_package( Boost 1.48 REQUIRED thread system ) + cache_set(CGAL_Core_3RD_PARTY_LIBRARIES ${CGAL_Core_3RD_PARTY_LIBRARIES} ${Boost_LIBRARIES} ) +endif(NOT MSVC) + include_directories (SYSTEM ${CGAL_3RD_PARTY_INCLUDE_DIRS}) add_definitions(${CGAL_3RD_PARTY_DEFINITIONS})