Skip to content

Commit 9fc3416

Browse files
fe-dagostinokjellahl
authored andcommitted
introducing protection to prevent multiple target declaration for uninstall.
1 parent 91441e4 commit 9fc3416

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,15 @@ set (top_srcdir .)
6565
configure_file (sigc++.pc.in sigc++-${SIGCXX_API_VERSION}.pc @ONLY)
6666
configure_file (sigc++-uninstalled.pc.in sigc++-${SIGCXX_API_VERSION}-uninstalled.pc @ONLY)
6767

68+
if (NOT TARGET uninstall)
6869
configure_file(
6970
"${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
7071
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
7172
IMMEDIATE @ONLY)
7273

7374
add_custom_target(uninstall
7475
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
75-
76+
endif()
7677

7778
install (FILES
7879
"${CMAKE_CURRENT_BINARY_DIR}/sigc++config.h"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy