Skip to content
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

Additional CMake changes #216

Merged
merged 5 commits into from
Mar 15, 2024
Merged

Additional CMake changes #216

merged 5 commits into from
Mar 15, 2024

Commits on Mar 14, 2024

  1. Use find_package to link against MPI libraries

    This is done so that:
    
    1. We can create separate targets for the serial and MPI executable and
    only link against the MPI libraries when needed without relying on the
    MPI compiler wrapper. This lets us compile all executables (serial and
    parallel) with a single invocation of CMake.
    2. We can use object libraries to compile the object files common to
    both serial and MPI builds. This saves compiling these object files for
    each executable (serial and MPI), reducing compilation time.
    
    Note: since compiler flags are the same across all targets, this change
    applies the flags globally to all targets in the current directory and
    below via [`add_compile_options`][add_compile_options].
    
    [add_compile_options]: https://cmake.org/cmake/help/latest/command/add_compile_options.html
    SeanBryan51 committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    b174460 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c0ce0e4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0369c4e View commit details
    Browse the repository at this point in the history
  4. Add --compiler flag and GNU compiler support

    Flags for release and debug configurations for the GNU compiler were
    taken from build.ksh (CABLE-POP_TRENDY branch).
    SeanBryan51 committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    93ac165 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    29d8b26 View commit details
    Browse the repository at this point in the history