Compare commits

...

3 Commits

Author SHA1 Message Date
Simboy a2561f0f12
Merge branch 'PhasicFlow:main' into main 2025-02-23 20:40:36 +08:00
HRN fd45625ce6 cmake_policy 2025-02-21 22:46:31 +03:30
HRN 3e0161a20f version control for cmake_policy 0169 2025-02-21 22:42:11 +03:30
1 changed files with 5 additions and 1 deletions

View File

@ -21,13 +21,17 @@ if(pFlow_STD_Parallel_Alg)
endif()
endif()
cmake_policy(SET CMP0169 OLD)
# Kokkos folder creation
set(Kokkos_Source_DIR $ENV{HOME}/Kokkos/kokkos)
if(NOT EXISTS "${Kokkos_Source_DIR}/CMakeLists.txt")
# Check CMake version and set policy CMP0169 if CMake version is 3.30 or higher
if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.30")
cmake_policy(SET CMP0169 OLD)
endif()
include(FetchContent)
FetchContent_Declare(
kokkos