From 12c8e60e6eef2c3ced0145aac6bb1c18df0021ac Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Mon, 17 Apr 2023 10:07:35 +0200 Subject: [PATCH] fix name of a custom target on Windows --- Installation/cmake/modules/CGAL_add_test.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Installation/cmake/modules/CGAL_add_test.cmake b/Installation/cmake/modules/CGAL_add_test.cmake index 984922a772f..0591b7266d6 100644 --- a/Installation/cmake/modules/CGAL_add_test.cmake +++ b/Installation/cmake/modules/CGAL_add_test.cmake @@ -85,9 +85,9 @@ function(cgal_add_compilation_test exe_name) APPEND PROPERTY LABELS "${PROJECT_NAME}") set_property(TEST "compilation of ${exe_name}" APPEND PROPERTY FIXTURES_REQUIRED "check_build_system_SetupFixture") - elseif(NOT TARGET "compilation of ${PROJECT_NAME}")#CMAKE_VS_MSBUILD_COMMAND + elseif(NOT TARGET "compilation_of__${PROJECT_NAME}")#CMAKE_VS_MSBUILD_COMMAND #this target is just a flag, to deal with the scope problem with the tests - add_custom_target("compilation of ${PROJECT_NAME}") + add_custom_target("compilation_of__${PROJECT_NAME}") add_test(NAME "compilation of ${PROJECT_NAME}" COMMAND ${TIME_COMMAND} "${CMAKE_VS_MSBUILD_COMMAND}" "${PROJECT_BINARY_DIR}/${PROJECT_NAME}.sln" "-m:$ENV{NUMBER_OF_PROCESSORS}" "/t:Build" "/p:Configuration=$") set_property(TEST "compilation of ${PROJECT_NAME}"