Your question
I'm trying to incorporate xtd into a project via the cpm.cmake package manager. However, this doesn't work because I have to first execute find_package and then when I try to do target_xxx CMake either: (1) claims that target_link_libraries(...) has already been used, or (2) the library tries to generate assembly information, but it does it in a weird way (it does something like ${CMAKE_SOURCE_DIR}/{generated_code_here}). Obviously, this doesn't work. What am I doing wrong?
Your question
I'm trying to incorporate xtd into a project via the cpm.cmake package manager. However, this doesn't work because I have to first execute
find_packageand then when I try to dotarget_xxxCMake either: (1) claims that target_link_libraries(...) has already been used, or (2) the library tries to generate assembly information, but it does it in a weird way (it does something like${CMAKE_SOURCE_DIR}/{generated_code_here}). Obviously, this doesn't work. What am I doing wrong?