Bug-fix: Boost Thread is a dependency of CGAL_Core only for GNU/g++

Previously, it was documented to g++ only, but the code was just
checking "not MSVC", and thus clang was in the set.
This commit is contained in:
Laurent Rineau 2019-04-26 17:12:01 +02:00
parent 6615d1d12d
commit a9fd0a3729
1 changed files with 2 additions and 2 deletions

View File

@ -71,8 +71,8 @@ function(CGAL_setup_CGAL_Core_dependencies target)
target_link_libraries( CGAL_Core ${keyword} CGAL::CGAL ) target_link_libraries( CGAL_Core ${keyword} CGAL::CGAL )
# See the release notes of CGAL-4.10: CGAL_Core now requires # See the release notes of CGAL-4.10: CGAL_Core now requires
# Boost.Thread, with all compilers but MSVC. # Boost.Thread, with GNU G++.
if (NOT MSVC) if (CMAKE_CXX_COMPILER_ID STREQUAL GNU)
if(TARGET Boost::thread) if(TARGET Boost::thread)
target_link_libraries( CGAL_Core ${keyword} Boost::thread) target_link_libraries( CGAL_Core ${keyword} Boost::thread)
else() else()