RobLoach / pntr_app

Application wrapper for pntr.
https://robloach.github.io/pntr_app/
zlib License
5 stars 1 forks source link

All target_link_libraries need to match style #56

Closed konsumer closed 12 months ago

konsumer commented 12 months ago

Essentially, there are 2 styles: "old" and "new" on calls to target_link_libraries. Was using a mix, but cmake wants them all to use one or the other, or you will get errors like this:

CMake Error at example/CMakeLists.txt:96 (target_link_libraries):
  The plain signature for target_link_libraries has already been used with
  the target "pntr_app_example_raylib".  All uses of target_link_libraries
  with a target must be either all-keyword or all-plain.

  The uses of the plain signature are here:

   * example/CMakeLists.txt:91 (target_link_libraries)
   * example/CMakeLists.txt:92 (target_link_libraries)
   * example/CMakeLists.txt:93 (target_link_libraries)