Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ if(GMGPOLAR_ENABLE_COVERAGE)
endif()

find_package(OpenMP REQUIRED COMPONENTS CXX)
find_package(Kokkos 4.4.1...<5.1 QUIET REQUIRED)
find_package(Kokkos 4.4.1...<6 QUIET REQUIRED)

if(GMGPOLAR_USE_MUMPS)
find_package(MUMPS REQUIRED COMPONENTS OpenMP METIS)
Expand Down
8 changes: 4 additions & 4 deletions cmake/GMGPolarConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")

include(CMakeFindDependencyMacro)

find_dependency(OpenMP REQUIRED)
find_dependency(Kokkos REQUIRED)
find_dependency(OpenMP COMPONENTS CXX)
find_dependency(Kokkos)

if(@GMGPOLAR_USE_MUMPS@)
find_dependency(MUMPS REQUIRED)
find_dependency(MUMPS COMPONENTS OpenMP METIS)
endif()

if(@GMGPOLAR_USE_LIKWID@)
find_dependency(LIKWID REQUIRED)
find_dependency(LIKWID)
endif()

include("${CMAKE_CURRENT_LIST_DIR}/GMGPolarTargets.cmake")
5 changes: 5 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ add_library(GMGPolarLib STATIC
${INTERPOLATION_SOURCES}
)

# Declare C++20 is a minimum required to use GMGPolarLib headers
target_compile_features(GMGPolarLib INTERFACE cxx_std_20)

# Basic library configuration
target_include_directories(GMGPolarLib PUBLIC
${GMGPOLAR_INCLUDE_DIRS}
Expand Down Expand Up @@ -82,6 +85,8 @@ add_library(GMGPolar::GMGPolarLib ALIAS GMGPolarLib)
add_library(GMGPolarInterface STATIC
${CONFIG_PARSER_SOURCES}
)
# Declare C++20 is a minimum required to use GMGPolarInterface headers
target_compile_features(GMGPolarInterface INTERFACE cxx_std_20)
target_link_libraries(GMGPolarInterface
PUBLIC
GMGPolarLib
Expand Down
Loading