diff options
author | Francesco Emanuele D'Agostino <fedagostino@gmail.com> | 2023-01-15 00:46:51 +0100 |
---|---|---|
committer | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2023-01-21 09:55:24 +0100 |
commit | 9fc3416a95abca28cb992e4607232a3287e847a1 (patch) | |
tree | a2631e0cac11869c459bdce4a3b0c93ced83c59d | |
parent | 91441e49653721053c50e3dfadb591de8592cd93 (diff) | |
download | sigc++-9fc3416a95abca28cb992e4607232a3287e847a1.tar.gz |
introducing protection to prevent multiple target declaration for uninstall.
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2151377..5741400 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -65,6 +65,7 @@ set (top_srcdir .) configure_file (sigc++.pc.in sigc++-${SIGCXX_API_VERSION}.pc @ONLY) configure_file (sigc++-uninstalled.pc.in sigc++-${SIGCXX_API_VERSION}-uninstalled.pc @ONLY) +if (NOT TARGET uninstall) configure_file( "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake" @@ -72,7 +73,7 @@ configure_file( add_custom_target(uninstall COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake) - +endif() install (FILES "${CMAKE_CURRENT_BINARY_DIR}/sigc++config.h" |