-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorporate MICM into build and start chem process structure #114
base: develop
Are you sure you want to change the base?
Conversation
@@ -1,6 +1,6 @@ | |||
cmake_minimum_required(VERSION 3.5) | |||
|
|||
project(CATChem VERSION 0.1.0 LANGUAGES Fortran) | |||
project(CATChem VERSION 0.1.0 LANGUAGES Fortran C CXX) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just nothing that, without adding these, was getting this error:
CMake Error in src/process/chem/CMakeLists.txt:
No known features for CXX compiler
""
version .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also note, it seems like really it's only necessary to add CXX to get a successful build
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@K20shores do you know if there's a way to get MUSICA to build without changing this, by specifying something elsewhere instead? Just curious, as our project code is all Fortran really.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zmoon I think this is required. If not, I don't think the linker will be properly configured. I could be wrong though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zmoon I was able to build your fork
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @K20shores , that's good to hear.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, if you want to only enable these languages only when musica is built, somewhere you can do something like this
if (ENABLE_MUSICA)
enable_language(C)
enable_language(CXX)
endif()
@mbruckner-work Please take a look |
Very cool! Let's talk about this in our UFS-Chem meetings on Monday. I have a couple of questions, but this looks great! |
set(_srcs CCPr_Chem_Mod.F90) | ||
|
||
add_library(${_lib} ${_srcs}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only cmake related comment I can think of is that it's recommended to use target_sources
in newer versions of cmake. I think if you use target_sources
and generate a project for something like Xcode or Visual Studio, this helps Cmake create better integration with that IDE. This certainly isn't a requirement though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @K20shores , I can update the whole project to use that in a separate PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great!
cc: @mattldawson