Open
Description
Im using the lib via FetchContent in my project.
message(STATUS "Fetching libad9361-iio from github")
FetchContent_Declare(
libad9361-iio
GIT_REPOSITORY https://github.com/analogdevicesinc/libad9361-iio
GIT_TAG main
)
FetchContent_MakeAvailable(libad9361-iio)
However, there is a naming clash with another library that also has a target uninstall:
[cmake] CMake Error at out/build/Debug/_deps/libad9361-iio-src/CMakeLists.txt:217 (add_custom_target):
[cmake] add_custom_target cannot create target "uninstall" because another target
[cmake] with the same name already exists. The existing target is a custom target
[cmake] created in source directory
[cmake] "/Users/myzinsky/Programming/qluto4/out/build/Debug/_deps/sdl2-src". See
[cmake] documentation for policy CMP0002 for more details.
One workaround would be to change the cmake a bit, in this way:
if(NOT TARGET uninstall)
endif()
Any thoughts?
Metadata
Metadata
Assignees
Labels
No labels