mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
binpac: Made uninstall target cooperate with other projects
This commit is contained in:
parent
aacc6ee043
commit
67e5bc7198
1 changed files with 10 additions and 8 deletions
|
@ -1,3 +1,5 @@
|
|||
project(BinPAC)
|
||||
|
||||
########################################################################
|
||||
## CMake Configuration
|
||||
|
||||
|
@ -12,19 +14,19 @@ endif ()
|
|||
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
|
||||
|
||||
# uninstall target
|
||||
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in"
|
||||
if ("${PROJECT_SOURCE_DIR}" STREQUAL "${CMAKE_SOURCE_DIR}")
|
||||
# uninstall target
|
||||
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
|
||||
@ONLY)
|
||||
|
||||
add_custom_target(uninstall COMMAND
|
||||
add_custom_target(uninstall COMMAND
|
||||
${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
|
||||
endif ()
|
||||
|
||||
########################################################################
|
||||
## Project/Build Configuration
|
||||
|
||||
project(BinPAC)
|
||||
|
||||
file(STRINGS "${CMAKE_CURRENT_SOURCE_DIR}/VERSION" BINPAC_VERSION LIMIT_COUNT 1)
|
||||
|
||||
if (ENABLE_DEBUG)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue