Merge remote-tracking branch 'github/junghans-CMake-typo' into correct-kokkos-docs

This commit is contained in:
Axel Kohlmeyer
2020-04-10 22:29:19 -04:00
11 changed files with 59 additions and 32 deletions

View File

@ -35,6 +35,9 @@ if(DOWNLOAD_KOKKOS)
INTERFACE_LINK_LIBRARIES ${CMAKE_DL_LIBS})
target_link_libraries(lammps PRIVATE LAMMPS::KOKKOS)
add_dependencies(LAMMPS::KOKKOS kokkos_build)
if(BUILD_LIB AND NOT BUILD_SHARED_LIBS)
install(CODE "MESSAGE(FATAL_ERROR \"Installing liblammps with downloaded libraries is currently not supported.\")")
endif()
elseif(EXTERNAL_KOKKOS)
find_package(Kokkos 3)
if(NOT Kokkos_FOUND)