Forum - JSON Fortran 8.3.0

Jump to navigation Jump to search
Overview > Topics > Porting > JSON Fortran 8.3.0
[#85]

How to install JSON Fortran (https://github.com/jacobwilliams/json-fortran) 8.3.0 with NEC SDK (nfort) 3.5.1 is as follows. All check is passed. Note that cpp is utilized instead of fpp to enable "push_macro" and "pop_macro" directives.

  $ git clone https://github.com/jacobwilliams/json-fortran.git
  $ cd json-fortran
  $ git checkout 8.3.0
  $ mkdir build
  $ cd build
  $ cmake -DCMAKE_Fortran_COMPILER=nfort -DCMAKE_Fortran_COMPILER_ID=NEC \
  -DCMAKE_Fortran_FLAGS=-fpp-name='/usr/bin/cpp -Wp,"-E -P -traditional"' \
  -DSKIP_DOC_GEN=TRUE \
  -DCMAKE_INSTALL_PREFIX=[your install path] ..
  $ make
  $ make check
  $ make install
Posted by Tkato on 7 September 2022 at 09:56.