CMake Error at CMakeLists.txt:176 (target_link_libraries):
The keyword signature for target_link_libraries has already been used with
the target "wfa2cpp_static". All uses of target_link_libraries with a
target must be either all-keyword or all-plain.
The uses of the keyword signature are here:
* CMakeLists.txt:171 (target_link_libraries)
CMake Error at CMakeLists.txt:177 (target_link_libraries):
The keyword signature for target_link_libraries has already been used with
the target "wfa2cpp". All uses of target_link_libraries with a target must
be either all-keyword or all-plain.
The uses of the keyword signature are here:
* CMakeLists.txt:170 (target_link_libraries)
Solutions: Specify the scope of how OpenMP is linked to WFA2-lib. I don't see any reason to publicly expose this, so PRIVATE seems like the default option.
WFA2-lib is not building for me with cmake version 3.25.2 when OpenMP is enabled.
It looks like https://github.com/smarco/WFA2-lib/pull/64 illegally used a mix of plain and keyword-based CMake syntax for linking libraries: https://stackoverflow.com/questions/59522267/cmake-rejects-a-second-target-link-libraries-talking-about-keyword-vs-plain
Reproduction:
Build with OpenMP:
Fail:
Solutions: Specify the scope of how OpenMP is linked to WFA2-lib. I don't see any reason to publicly expose this, so
PRIVATE
seems like the default option.