Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 4, 2023
1 parent 32cc728 commit d25532d
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions uninstall.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,22 @@
#
macro(_SETUP_PROJECT_UNINSTALL)
# Detect if the .catkin was created previously
IF(NOT DEFINED PACKAGE_CREATES_DOT_CATKIN OR NOT "${PACKAGE_PREVIOUS_INSTALL_PREFIX}" EQUAL "${CMAKE_INSTALL_PREFIX}")
SET(PACKAGE_PREVIOUS_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}" CACHE INTERNAL "Cache install prefix given to the package")
IF(EXISTS "${CMAKE_INSTALL_PREFIX}/.catkin")
SET(PACKAGE_CREATES_DOT_CATKIN FALSE CACHE INTERNAL "")
ELSE()
SET(PACKAGE_CREATES_DOT_CATKIN TRUE CACHE INTERNAL "")
ENDIF()
ENDIF()
if(NOT DEFINED PACKAGE_CREATES_DOT_CATKIN
OR NOT "${PACKAGE_PREVIOUS_INSTALL_PREFIX}" EQUAL
"${CMAKE_INSTALL_PREFIX}")
set(PACKAGE_PREVIOUS_INSTALL_PREFIX
"${CMAKE_INSTALL_PREFIX}"
CACHE INTERNAL "Cache install prefix given to the package")
if(EXISTS "${CMAKE_INSTALL_PREFIX}/.catkin")
set(PACKAGE_CREATES_DOT_CATKIN
FALSE
CACHE INTERNAL "")
else()
set(PACKAGE_CREATES_DOT_CATKIN
TRUE
CACHE INTERNAL "")
endif()
endif()
# FIXME: it is utterly stupid to rely on the install manifest. Can't we just
# remember what we install ?!
configure_file(
Expand Down

0 comments on commit d25532d

Please sign in to comment.