Skip to content

Force CAM to build yaml-cpp (vs searching for it first when building TUV-x)#1538

Open
briandobbins wants to merge 2 commits intoESCOMP:cam_developmentfrom
briandobbins:tuvx_path_search_fix
Open

Force CAM to build yaml-cpp (vs searching for it first when building TUV-x)#1538
briandobbins wants to merge 2 commits intoESCOMP:cam_developmentfrom
briandobbins:tuvx_path_search_fix

Conversation

@briandobbins
Copy link
Copy Markdown
Collaborator

There's an issue with CAM / CESM cases and TUV-x when users have Conda environments active, since it finds a yaml-cpp library there, but it often isn't compatible. This PR introduces a one-line change to force CAM to use its own copy so we have consistent behavior regardless of someone's conda environment.

Fixes #1537

… FindPackage. This addresses a build issue when Conda environments are active and find it in their search path.
Comment thread cime_config/buildlib
cmake_args += "-DCMAKE_DISABLE_FIND_PACKAGE_yaml-cpp=1 "
if (case.get_value("MACH") == "izumi") :
cmake_args += f"-DCMAKE_PREFIX_PATH={arg_dict['NETCDF_PATH']} "
cmake_args += f"-DCMAKE_IGNORE_PATH={os.environ.get('PYTHONHOME')} "
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the CMAKE_DISABLE arg at line 221, can the CMAKE_IGNORE_PATH for izumi builds at line 224 be removed? The conda environment issue sounds like an issue I had on izumi, so the IGNORE_PATH arg was added.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm an idiot - I didn't even think of Izumi, and that's a good question. Let me try things out and report back. Got a few other things I need to focus on tonight, so it may be tomorrow.

(I'm embarrassed to say I didn't even check out the other -DCMAKE args!)

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

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants