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.
include(../../common.cmake)
beforeproject(...)
produces this warning when shared libraries are used: