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

Turn setting Kokkos_CXX_STANDARD into an error #5293

Merged
merged 1 commit into from
Jul 29, 2022

Conversation

masterleinad
Copy link
Contributor

Addressing #5283 (comment).

ENDIF()

IF (NOT KOKKOS_CXX_STANDARD AND NOT CMAKE_CXX_STANDARD)
MESSAGE(STATUS "Setting default Kokkos CXX standard to 14")
IF (NOT CMAKE_CXX_STANDARD)
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be more intuitive to flip this logic, instead saying:

IF (CMAKE_CXX_STANDARD) SET(KOKKOS_CXX_STANDARD ${CMAKE_CXX_STANDARD}) ELSE() SET(KOKKOS_CXX_STANDARD "14") ENDIF() MESSAGE(STATUS "Setting default Kokkos CXX standard to ${KOKKOS_CXX_STANDARD}")

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't see much of a difference honestly.

@crtrott crtrott merged commit 955f2ec into kokkos:develop Jul 29, 2022
@masterleinad masterleinad mentioned this pull request Sep 7, 2022
@masterleinad masterleinad deleted the kokkos_cxx_standard_error branch November 10, 2022 21:04
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.

None yet

5 participants