From 3beb64ca2bb92ced51270b32884ca21b10b4538f Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Tue, 30 Nov 2021 12:46:38 +0100 Subject: [PATCH] Fix Fix cgal_add_compilation_test exe_name --- Installation/cmake/modules/CGAL_add_test.cmake | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Installation/cmake/modules/CGAL_add_test.cmake b/Installation/cmake/modules/CGAL_add_test.cmake index 6c25c7e9544a..b5d662cb6606 100644 --- a/Installation/cmake/modules/CGAL_add_test.cmake +++ b/Installation/cmake/modules/CGAL_add_test.cmake @@ -141,10 +141,6 @@ function(cgal_add_compilation_test exe_name) PROPERTY FIXTURES_SETUP "check_build_system_SetupFixture") endif() endif() - if(POLICY CMP0066) # cmake 3.7 or later - set_property(TEST "compilation_of__${exe_name}" - APPEND PROPERTY FIXTURES_REQUIRED "check_build_system_SetupFixture") - endif() if(TARGET CGAL_Qt5_moc_and_resources) # if CGAL_Qt5 was searched, and is header-only get_property(linked_libraries TARGET "${exe_name}" PROPERTY LINK_LIBRARIES) # message(STATUS "${exe_name} depends on ${linked_libraries}") @@ -156,7 +152,7 @@ function(cgal_add_compilation_test exe_name) add_custom_target(compilation_of__CGAL_Qt5_moc_and_resources) add_dependencies( compilation_of__CGAL_Qt5_moc_and_resources CGAL_Qt5_moc_and_resources ) add_test(NAME "compilation_of__CGAL_Qt5_moc_and_resources" - COMMAND "${CMAKE_COMMAND}" --build "${CMAKE_BINARY_DIR}" --target "compilation_of__CGAL_Qt5_moc_and_resources" --config "$") + COMMAND "${CMAKE_COMMAND}" --build "${CMAKE_BINARY_DIR}" --target "CGAL_Qt5_moc_and_resources" --config "$") set_property(TEST "compilation_of__CGAL_Qt5_moc_and_resources" APPEND PROPERTY LABELS "CGAL_build_system") set_property(TEST "compilation_of__CGAL_Qt5_moc_and_resources"