Consistently use keyword version of target_link_libraries.

Fixes:

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

   * /var/lib/jenkins/workspace/opm-common-PR-builder/mpi/install/share/opm/cmake/Modules/OpmCompile.cmake:61 (target_link_libraries)

-- Configuring incomplete, errors occurred!
This commit is contained in:
Markus Blatt 2021-04-01 14:29:31 +02:00
parent de6baa3c00
commit a53139b20a

View File

@ -455,5 +455,5 @@ if(CUDA_FOUND)
endif()
if(OpenCL_FOUND)
target_link_libraries( opmsimulators ${OpenCL_LIBRARIES} )
target_link_libraries( opmsimulators PUBLIC ${OpenCL_LIBRARIES} )
endif()