kokkos / kokkos-tutorials

Tutorials for the Kokkos C++ Performance Portability Programming Ecosystem
Other
286 stars 96 forks source link

Moved project declarations before include common.cmake #33

Closed jrmadsen closed 4 years ago

jrmadsen commented 4 years ago

include(../../common.cmake) before project(...) produces this warning when shared libraries are used:

CMake Warning (dev) at /usr/local/lib/cmake/Kokkos/KokkosTargets.cmake:54 (add_library):
  ADD_LIBRARY called with SHARED option but the target platform does not
  support dynamic linking.  Building a STATIC library instead.  This may lead
  to problems.
Call Stack (most recent call first):
  /usr/local/lib/cmake/Kokkos/KokkosConfig.cmake:45 (INCLUDE)
  /home/kokkos/tutorials/Intro-Full/Exercises/common.cmake:10 (find_package)
  CMakeLists.txt:2 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.