Fix cmake error: Mixed styles of target_link_libraries signatures
authorPaul Bauer <paul.bauer.q@gmail.com>
Mon, 4 May 2020 17:53:47 +0000 (17:53 +0000)
committerMark Abraham <mark.j.abraham@gmail.com>
Mon, 4 May 2020 17:53:47 +0000 (17:53 +0000)
commit90e19427763990584ea9057e6b623df4f6959247
treef9b730d743596452b3b2bf049e3d750b6d6f67ce
parent1245ef414695b58575dee5f5d37895b7fe80037e
Fix cmake error: Mixed styles of target_link_libraries signatures

Plain and keyword target_link_libraries signatures cannot be mixed.

Complete error message:

------------------->8---------------------------8<--------------------------
CMake Error at src/testutils/CMakeLists.txt:76 (target_link_libraries):
  The keyword signature for target_link_libraries has already been used with
  the target "testutils".  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:

   * src/testutils/CMakeLists.txt:72 (target_link_libraries)

-- Configuring incomplete, errors occurred!
------------------->8---------------------------8<--------------------------

See: https://cmake.org/cmake/help/v3.0/policy/CMP0023.html
docs/release-notes/2020/2020.3.rst
src/testutils/CMakeLists.txt