mirror of
https://github.com/cosmo-sims/monofonIC.git
synced 2024-09-19 17:03:45 +02:00
avoid policy error on old versions of cmake
This commit is contained in:
parent
f90778ba54
commit
3797ff0325
1 changed files with 3 additions and 1 deletions
|
@ -50,7 +50,9 @@ endif(ENABLE_MPI)
|
||||||
|
|
||||||
|
|
||||||
# FFTW
|
# FFTW
|
||||||
cmake_policy(SET CMP0074 NEW)
|
if(POLICY CMP0074)
|
||||||
|
cmake_policy(SET CMP0074 NEW)
|
||||||
|
endif()
|
||||||
if(ENABLE_MPI)
|
if(ENABLE_MPI)
|
||||||
find_package(FFTW3 COMPONENTS SINGLE DOUBLE OPENMP THREADS MPI)
|
find_package(FFTW3 COMPONENTS SINGLE DOUBLE OPENMP THREADS MPI)
|
||||||
else()
|
else()
|
||||||
|
|
Loading…
Reference in a new issue