Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

Yaml include paths with cmake #10

Open
crtrott opened this issue Dec 22, 2014 · 0 comments
Open

Yaml include paths with cmake #10

crtrott opened this issue Dec 22, 2014 · 0 comments

Comments

@crtrott
Copy link
Contributor

crtrott commented Dec 22, 2014

Hi

when building on a linux platform cmake adds PATH_TO_YAML/include/yaml-cpp as an include directory. But Nalu explicitly include <yaml-cpp/SOME_FILE.hpp>.

Heres output:
[ 0%] Building CXX object CMakeFiles/nalu.dir/src/HeatCondMassBackwardEulerNodeSuppAlg.C.o /opt/cray/craype/2.1.3/bin/CC -O3 -I/home/crtrott/lib/yaml/0.3.0/gnu/4.9.0/include/yaml-cpp -I/home/crtrott/TrilinosBuild/SerialClassic-Nalu/install/lib/cmake/Trilinos/../../../include -I/home/projects/x86-64/boost/1.55.0/cray/7.0.1/gnu/4.9.0/include -I/home/crtrott/lib/superlu/4.3.0/include -I/opt/cray/netcdf-hdf5parallel/4.3.2/gnu/49/include -I/opt/cray/hdf5-parallel/1.8.13/gnu/49/include -I/home/crtrott/lib/zlib/1.2.8/gnu/4.9.0/include -I/home/crtrott/Nalu/include -o CMakeFiles/nalu.dir/src/HeatCondMassBackwardEulerNodeSuppAlg.C.o -c /home/crtrott/Nalu/src/HeatCondMassBackwardEulerNodeSuppAlg.C In file included from /home/crtrott/Nalu/src/HeatCondMassBackwardEulerNodeSuppAlg.C:12:0: /home/crtrott/Nalu/include/Realm.h:16:27: fatal error: yaml-cpp/yaml.h: No such file or directory #include <yaml-cpp/yaml.h>

This is the Nalu config:

nalu_build_dir=/home/crtrott/NaluBuild/SerialClassic/
trilinos_install_dir=/home/crtrott/TrilinosBuild/SerialClassic-Nalu/install
yaml_install_dir=/home/crtrott/lib/yaml/0.3.0/gnu/4.9.0

EXTRA_ARGS=$@

# Cleanup old cache before we configure
# Note:  This does not remove files produced by make.  Use "make clean" for this.
find . -name "CMakeFiles" -exec rm -rf {} \;
rm -f CMakeCache.txt

cmake \
  -DTrilinos_DIR:PATH=$trilinos_install_dir \
  -DYAML_DIR:PATH=$yaml_install_dir \
  -DENABLE_INSTALL:BOOL=OFF \
$EXTRA_ARGS \
/home/crtrott/Nalu
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant