From 696b26e9284e22fbf153c106702a3019290c10d7 Mon Sep 17 00:00:00 2001 From: redcode Date: Mon, 19 Feb 2024 03:07:17 +0100 Subject: [PATCH] Print `"${PROJECT_NAME} END"` at the end when the project is integrated as a CMake subproject. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4c1fc9b9..fbd47cb7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -411,4 +411,8 @@ if(${PROJECT_NAME}_WITH_TESTS) unset(_depot_dir) endif() +if(NOT CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR) + message("${PROJECT_NAME} END") +endif() + # CMakeLists.txt EOF