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

Rewrote cmake build system to improve organization and usability #225

Merged
merged 2 commits into from
Aug 1, 2024

Conversation

ddement
Copy link
Collaborator

@ddement ddement commented Jul 25, 2024

IMPORTANT CHANGES:

  • Options have been renamed to OpenTurbine_* instead of OTURB

  • Tests are now built by default

  • The unit test executable now lives in tests/unit_tests, not the top level build directory

  • The built libraries now live in src, not the top level build directory

  • To run unit tests which use shared libraries, you must copy them into the directory where you're running your unit test executable. For example, from your build directory, run cp src/*.dll ./ followed by ./tests/unit_tests/openturbine_unit_tests

@ddement ddement self-assigned this Jul 25, 2024
@ddement ddement force-pushed the rework_cmake_redux branch 2 times, most recently from 4474e06 to 0754f85 Compare July 25, 2024 16:29
IMPORTANT CHANGES:
Options have been renamed to OpenTurbine_* instead of OTURB

Tests are now build by default

The unit test executable now lives in tests/unit_tests, not the top level build directory

The built libraries now live in src, not the top level build directory

To run unit tests which use shared libraries, you must copy them into the directory
where you're running your unit test executable.  For example, from your build directory,
run `cp src/*.dll ./` followed by `./tests/unit_tests/openturbine_unit_tests`
@ddement ddement force-pushed the rework_cmake_redux branch from 0754f85 to 186c828 Compare July 25, 2024 16:31
@ddement ddement marked this pull request as ready for review July 25, 2024 16:44
Copy link
Collaborator

@deslaughter deslaughter left a comment

Choose a reason for hiding this comment

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

The documentation needs to be updated to reflect the changes in option naming. It also doesn't look like the compiling documentation has been updated to include the instructions for spack.

@ddement
Copy link
Collaborator Author

ddement commented Jul 31, 2024

The documentation needs to be updated to reflect the changes in option naming. It also doesn't look like the compiling documentation has been updated to include the instructions for spack.

I updated the documentation. In fairness, it hadn't been updated in 1.5 years (it completely missed the KokkosKernels only days), and I wouldn't be surprised if other parts are also woefully out of date.

@ddement ddement merged commit 9e39274 into main Aug 1, 2024
9 checks passed
@ddement ddement deleted the rework_cmake_redux branch August 1, 2024 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants