I am trying to rebuild Polly to see changes that I will make. For that, I use the command on the Polly get started website:
CMake Error at cmake/polly_macros.cmake:23 (add_library):
add_library cannot create target "PollyISL" because an imported target with
the same name already exists.
Call Stack (most recent call first):
lib/External/CMakeLists.txt:284 (add_polly_library)
CMake Error at lib/External/CMakeLists.txt:312 (target_compile_options):
target_compile_options may only set INTERFACE properties on IMPORTED
targets
CMake Error at /usr/lib/llvm-12/lib/cmake/llvm/AddLLVM.cmake:517 (add_library):
add_library cannot create target "Polly" because an imported target with
the same name already exists.
Call Stack (most recent call first):
/usr/lib/llvm-12/lib/cmake/llvm/AddLLVM.cmake:776 (llvm_add_library)
/usr/lib/llvm-12/lib/cmake/llvm/AddLLVM.cmake:979 (add_llvm_library)
lib/CMakeLists.txt:54 (add_llvm_pass_plugin)
CMake Error at /usr/lib/llvm-12/lib/cmake/llvm/AddLLVM.cmake:642 (target_link_libraries):
Cannot specify link libraries for target "Polly" which is not built by this
project.
Call Stack (most recent call first):
/usr/lib/llvm-12/lib/cmake/llvm/AddLLVM.cmake:776 (llvm_add_library)
/usr/lib/llvm-12/lib/cmake/llvm/AddLLVM.cmake:979 (add_llvm_library)
lib/CMakeLists.txt:54 (add_llvm_pass_plugin)
-- Configuring incomplete, errors occurred!
See also "/home/elouan/llvm_build/CMakeFiles/CMakeOutput.log".
See also "/home/elouan/llvm_build/CMakeFiles/CMakeError.log".
I tried to resolve them or to change the command but it's not working.