add_custom_target cannot create target "pptk.libs.temp-NOTFOUND"
Hi, I was trying to build pptk with CMake 3.12.3 in Linux. However, I got the following problem:
CMake Error at cmake/UsefulMacros.cmake:83 (add_custom_target): add_custom_target cannot create target "pptk.libs.temp-NOTFOUND" because another target with the same name already exists. The existing target is a custom target created in source directory "/p/project/ccstdl/cstdl005/pptk/pptk/libs". See documentation for policy CMP0002 for more details. Call Stack (most recent call first): pptk/libs/CMakeLists.txt:9 (copy_file) pptk/libs/CMakeLists.txt:46 (copy_system_file)
I tried to use set(ALLOW_DUPLICATE_CUSTOM_TARGETS TRUE) in the CMakeLists.txt, but the problem was not solved.
Any ideas?
Thanks
I have the same problem. It seems to be linked to the macro to create license files. I removed the content of pptk/libs/CMakeLists.txt as a temporary fix and I was able to compile without any problem.
As I just saw your post in #4 I guess I'm retracing your path to solve the pptk.view(), but I didn't succeed so far.