mirror of https://github.com/CGAL/cgal
When CGAL_Qt5 or CGAL_Core targets are imported, then we need to call
`find_package(Qt5)` and `find_package(Boost)` to re-import the
targets of Qt5 or `Boost::thread`.
Otherwise, there is that CMake warning:
CMake Warning (dev) at /mnt/testsuite/cmake/modules/CGAL_CreateSingleSourceCGALProgram.cmake:49 (add_executable):
Policy CMP0028 is not set: Double colon in target name means ALIAS or
IMPORTED target. Run "cmake --help-policy CMP0028" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
Target "test_Min_circle" links to target "Boost::thread" but the target was
not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
Call Stack (most recent call first):
CMakeLists.txt:22 (create_single_source_cgal_program)
This warning is for project developers. Use -Wno-dev to suppress it.
and then that link error:
/usr/bin/ld: cannot find -lBoost::thread
Ref:
https://cgal.geometryfactory.com/CGAL/testsuite/CGAL-4.12-Ic-200/Bounding_volumes/TestReport_lrineau_Fedora-Release.gz
|
||
|---|---|---|
| .. | ||
| Help | ||
| config | ||
| CGALConfig_binary.cmake.in | ||
| CGALConfig_binary_header_only.cmake.in | ||
| CGALConfig_install.cmake.in | ||
| CGALLibConfig.cmake.in | ||
| CGAL_CheckCXXFileRuns.cmake | ||
| CGAL_Common.cmake | ||
| CGAL_CreateSingleSourceCGALProgram.cmake | ||
| CGAL_GeneratorSpecificSettings.cmake | ||
| CGAL_Locate_CGAL_TAUCS.cmake | ||
| CGAL_Macros.cmake | ||
| CGAL_Qt5_moc_and_resource_files.cmake | ||
| CGAL_SCM.cmake | ||
| CGAL_SetupBoost.cmake | ||
| CGAL_SetupCGALDependencies.cmake | ||
| CGAL_SetupCGAL_CoreDependencies.cmake | ||
| CGAL_SetupCGAL_ImageIODependencies.cmake | ||
| CGAL_SetupCGAL_Qt5Dependencies.cmake | ||
| CGAL_SetupDependencies.cmake | ||
| CGAL_SetupFlags.cmake | ||
| CGAL_SetupGMP.cmake | ||
| CGAL_SetupLEDA.cmake | ||
| CGAL_SetupVLD.cmake | ||
| CGAL_TweakFindBoost.cmake | ||
| CGAL_UseBLAS.cmake | ||
| CGAL_UseLAPACK.cmake | ||
| CGAL_UseLEDA.cmake | ||
| CGAL_UseMKL.cmake | ||
| CGAL_UseMPFI.cmake | ||
| CGAL_UseRS.cmake | ||
| CGAL_UseRS3.cmake | ||
| CGAL_UseTAUCS.cmake | ||
| CGAL_VersionUtils.cmake | ||
| CGAL_add_test.cmake | ||
| CGAL_display_flags.cmake | ||
| CGAL_setup_target_dependencies.cmake | ||
| CGAL_target_use_TBB.cmake | ||
| FindBLAS.cmake | ||
| FindCORE.cmake | ||
| FindESBTL.cmake | ||
| FindEigen3.cmake | ||
| FindF2C.cmake | ||
| FindGLEW.cmake | ||
| FindGMP.cmake | ||
| FindGMPXX.cmake | ||
| FindIPE.cmake | ||
| FindLAPACK.cmake | ||
| FindLASLIB.cmake | ||
| FindLEDA.cmake | ||
| FindMETIS.cmake | ||
| FindMKL.cmake | ||
| FindMPFI.cmake | ||
| FindMPFR.cmake | ||
| FindNTL.cmake | ||
| FindOpenMesh.cmake | ||
| FindQGLViewer.cmake | ||
| FindRS.cmake | ||
| FindRS3.cmake | ||
| FindSuiteSparse.cmake | ||
| FindTAUCS.cmake | ||
| FindTBB.cmake | ||
| Makefile | ||
| UseCGAL.cmake | ||
| UseESBTL.cmake | ||
| UseEigen3.cmake | ||
| UseLASLIB.cmake | ||
| UseOpenMesh.cmake | ||
| UseTBB.cmake | ||
| list_of_whitelisted_headers.cmake | ||
| process_dependencies.cmake | ||
| run_cmd_redirection_cerr.cmake | ||
| run_test_with_cin.cmake | ||
| test_MPFI.cpp | ||