Skip to content

Runtime error on MacOSx with nlohmann::json, out_of_range exception: key 'NUOPC' not found #311

Closed Answered by natalie-perlin
natalie-perlin asked this question in NUOPC
Discussion options

You must be logged in to vote

@billsacks @danrosen25 @SamuelTrahanNOAA

What seemed to help to build ufs_model and to run it SUCCESSFULLY(!) was to set LINKER_LANGUAGE to CXX instead of Fortran in CMakeLists.txt, i.e.:
set_target_properties(ufs_model PROPERTIES LINKER_LANGUAGE CXX)

The only one concern is the need to set linker to CXX for the code that is nearly entirely in Fortran (and a little C), just because of a library (even a few libraries) in CXX... Please correct me if I'm wrong!

Thank you for your help!

Replies: 6 comments 11 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@SamuelTrahanNOAA
Comment options

@billsacks
Comment options

@natalie-perlin
Comment options

@billsacks
Comment options

@natalie-perlin
Comment options

Comment options

You must be logged in to vote
1 reply
@natalie-perlin
Comment options

Comment options

You must be logged in to vote
1 reply
@natalie-perlin
Comment options

Comment options

You must be logged in to vote
1 reply
@SamuelTrahanNOAA
Comment options

Answer selected by danrosen25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment