Commit bdc3785e authored by Jonathan Lambrechts's avatar Jonathan Lambrechts
Browse files

cmake < 3.7 compatibility

parent 35c3fdad
Pipeline #2396 failed with stage
in 21 seconds
......@@ -43,8 +43,8 @@ if(ENABLE_GOTM)
PREFIX gotm
SOURCE_SUBDIR src
BINARY_DIR gotm/build
CMAKE_ARGS -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} -DGOTM_USE_FABM=0 -DGOTM_USE_NETCDF=0 -DCMAKE_Fortran_FLAGS=-fPIC
BUILD_COMMAND make turbulence
CONFIGURE_COMMAND ${CMAKE_COMMAND} -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} -DGOTM_USE_FABM=0 -DGOTM_USE_NetCDF=0 -DCMAKE_Fortran_FLAGS=-fPIC ${CMAKE_CURRENT_BINARY_DIR}/gotm/src/gotm-4.9.0/src
BUILD_COMMAND ${CMAKE_COMMAND} --build ${CMAKE_CURRENT_BINARY_DIR}/gotm/build --target turbulence
)
enable_language(Fortran)
include(FortranCInterface)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment