Avoid target collision if gtsam used as submodule
parent
b6bd656584
commit
ffc4e59bfc
|
@ -6,5 +6,11 @@ configure_file(
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
|
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
|
||||||
IMMEDIATE @ONLY)
|
IMMEDIATE @ONLY)
|
||||||
|
|
||||||
add_custom_target(uninstall
|
if (NOT TARGET uninstall) # avoid duplicating this target
|
||||||
"${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
|
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