this seems to help:
kklingbe@phy-234 /media/work/kklingbe/tools/fabm/code/src/yaml $
git diff
diff --git a/src/yaml/CMakeLists.txt b/src/yaml/CMakeLists.txt
index 55625c6..7254a82 100644
--- a/src/yaml/CMakeLists.txt
+++ b/src/yaml/CMakeLists.txt
@@ -20,7 +20,7 @@ set_property(TARGET yaml PROPERTY
Fortran_MODULE_DIRECTORY "${CMAKE_CURRENT_BINA
target_include_directories(yaml
PUBLIC
$<INSTALL_INTERFACE:include>
-
$<BUILD_INTERFACE:"${CMAKE_CURRENT_BINARY_DIR}/modules">
+
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/modules>
)
but at the end still this error appears (because no yaml stuff
was compiled):
/media/work/kklingbe/tools/fabm/code/src/fabm_config.F90:11.7:
use yaml_types
1
Fatal Error: Can't open module file 'yaml_types.mod' for reading
at (1): No such file or directory
Hi Karsten,
On 5/30/19 9:50 PM, Karsten Bolding wrote:
3.0.2Two things:
What version of CMake are you using?
works fine.
Can you try and compile without FABM.
yes, it's the FABM compilation (same error there).
gotm/master has not been touch so not there.
Regards, Knut
Karsten
Den tor. 30. maj 2019 kl. 20.31 skrev Knut <knut...@gmx.net>:
Hi,
with the latest codes I get these warnings and errors from cmake:
-- The Fortran compiler identification is GNU
-- Check for working Fortran compiler: /usr/bin/gfortran
-- Check for working Fortran compiler: /usr/bin/gfortran -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /usr/bin/gfortran supports Fortran 90
-- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes
-- Found MPI_Fortran:
/usr/lib/libmpi_f90.so;/usr/lib/libmpi_f77.so;/usr/lib/libmpi.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libhwloc.so
Cartesian
-- Found NetCDF: -L/usr/lib -lnetcdff -lnetcdf
-- Configuring done
CMake Warning (dev) in
/media/work/kklingbe/tools/fabm/code/src/CMakeLists.txt:
Policy CMP0021 is not set: Fatal error on relative paths in
INCLUDE_DIRECTORIES target property. Run "cmake --help-policy
CMP0021" for
policy details. Use the cmake_policy command to set the policy and
suppress this warning.
Found relative path while evaluating include directories of "fabm":
""/media/work/kklingbe/tools/getm/setups-kk/haidvogel/build/gotm/fabm_src/yaml/modules""
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) in
/media/work/kklingbe/tools/fabm/code/src/CMakeLists.txt:
Policy CMP0021 is not set: Fatal error on relative paths in
INCLUDE_DIRECTORIES target property. Run "cmake --help-policy
CMP0021" for
policy details. Use the cmake_policy command to set the policy and
suppress this warning.
Found relative path while evaluating include directories of "fabm":
""/media/work/kklingbe/tools/getm/setups-kk/haidvogel/build/gotm/fabm_src/yaml/modules""
This warning is for project developers. Use -Wno-dev to suppress it.
cmake: ../../Source/cmLocalGenerator.cxx:2715: std::string
cmLocalGenerator::ConvertToRelativePath(const
std::vector<std::basic_string<char> >&, const char*, bool): Assertion
`in_remote[0] != '\"'' failed.
Aborted
What did I do wrong?
Thanks for your help.
Cheers, Knut
--
You received this message because you are subscribed to the Google Groups "GETM-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to getm-devel+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/getm-devel/eaa21e3e-43bd-d07c-da8f-14c3ef28df9f%40gmx.net.
For more options, visit https://groups.google.com/d/optout.
--
--Karsten Bolding
You received this message because you are subscribed to the Google Groups "GOTM-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gotm-devel+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gotm-devel/CAFvy56VRZLYyq6UP0uxXO4Ym7jHAq7pmvx4Cj7_Jfn%2BWxE9JGg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "FABM-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fabm-devel+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fabm-devel/e4cee686-860e-9088-7575-7124300345b8%40gmx.net.
Hi Knut,
Thanks! This should be fixed now.
Cheers,
Jorn
--
You received this message because you are subscribed to the Google Groups "FABM-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fabm-devel+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fabm-devel/e4cee686-860e-9088-7575-7124300345b8%40gmx.net.
Just to note that I’ve committed a few more fixes related to this just now.
Cheers,
Jorn
thanks Jorn! fabm compilation works fine now.
To view this discussion on the web visit https://groups.google.com/d/msgid/fabm-devel/014701d5178d%24e417a4c0%24ac46ee40%24%40bolding-bruggeman.com.