Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
b8047245
Unverified
Commit
b8047245
authored
Jul 31, 2020
by
Henry Schreiner
Committed by
GitHub
Jul 31, 2020
Browse files
fix: uninstall cleanup (#2346)
parent
6f6e9394
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
.gitignore
.gitignore
+1
-0
CMakeLists.txt
CMakeLists.txt
+7
-7
tools/cmake_uninstall.cmake.in
tools/cmake_uninstall.cmake.in
+0
-0
No files found.
.gitignore
View file @
b8047245
...
...
@@ -2,6 +2,7 @@ CMakeCache.txt
CMakeFiles
Makefile
cmake_install.cmake
cmake_uninstall.cmake
.DS_Store
*.so
*.pyd
...
...
CMakeLists.txt
View file @
b8047245
...
...
@@ -245,13 +245,13 @@ if(PYBIND11_INSTALL)
EXPORT
"
${
PYBIND11_EXPORT_NAME
}
"
NAMESPACE
"pybind11::"
DESTINATION
${
PYBIND11_CMAKECONFIG_INSTALL_DIR
}
)
endif
()
# Uninstall target
if
(
PYBIND11_MASTER_PROJECT
)
configure_file
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/
cmake
/cmake_uninstall.cmake.in"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/cmake_uninstall.cmake"
IMMEDIATE @ONLY
)
# Uninstall target
if
(
PYBIND11_MASTER_PROJECT
)
configure_file
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/
tools
/cmake_uninstall.cmake.in"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/cmake_uninstall.cmake"
IMMEDIATE @ONLY
)
add_custom_target
(
uninstall COMMAND
${
CMAKE_COMMAND
}
-P
${
CMAKE_CURRENT_BINARY_DIR
}
/cmake_uninstall.cmake
)
add_custom_target
(
uninstall COMMAND
${
CMAKE_COMMAND
}
-P
${
CMAKE_CURRENT_BINARY_DIR
}
/cmake_uninstall.cmake
)
endif
()
endif
()
cmake
/cmake_uninstall.cmake.in
→
tools
/cmake_uninstall.cmake.in
View file @
b8047245
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment