mirror of https://github.com/CGAL/cgal
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:
parent
6615d1d12d
commit
a9fd0a3729
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue