Merge pull request #691 from borglab/fix-uninstall-target-exists
Avoid target collision if gtsam used as submodulerelease/4.3a0
commit
48232a3357
|
@ -6,5 +6,11 @@ configure_file(
|
|||
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
|
||||
IMMEDIATE @ONLY)
|
||||
|
||||
add_custom_target(uninstall
|
||||
"${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
|
||||
if (NOT TARGET uninstall) # avoid duplicating this target
|
||||
add_custom_target(uninstall
|
||||
"${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
|
||||
else()
|
||||
add_custom_target(uninstall_gtsam
|
||||
"${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
|
||||
add_dependencies(uninstall uninstall_gtsam)
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue