Skip to content

kokkos: set CMAKE_CXX_STANDARD instead of Kokkos_CXX_STANDARD#31841

Merged
eugeneswalker merged 2 commits intodevelopfrom
kokkos-develop-set-cmake-cxx-standard
Aug 1, 2022
Merged

kokkos: set CMAKE_CXX_STANDARD instead of Kokkos_CXX_STANDARD#31841
eugeneswalker merged 2 commits intodevelopfrom
kokkos-develop-set-cmake-cxx-standard

Conversation

@eugeneswalker
Copy link
Copy Markdown
Contributor

It looks like CXX standard needs to be set differently for kokkos@develop.

Without this PR, you get this error when trying to build kokkos@develop:

  >> 5    CMake Error at cmake/kokkos_pick_cxx_std.cmake:12 (MESSAGE):
     6      Setting the variable Kokkos_CXX_STANDARD in configuration is deprec
          ated -
     7      set CMAKE_CXX_STANDARD directly instead
     8    Call Stack (most recent call first):
     9      CMakeLists.txt:43 (INCLUDE)

@crtrott @janciesko @wspear

Copy link
Copy Markdown

@dalg24 dalg24 left a comment

Choose a reason for hiding this comment

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

Please use CMAKE_CXX_STANDARD unconditionally

@eugeneswalker eugeneswalker changed the title kokkos@develop: set CMAKE_CXX_STANDARD instead of Kokkos_CXX_STANDARD kokkos: set CMAKE_CXX_STANDARD instead of Kokkos_CXX_STANDARD Aug 1, 2022
@eugeneswalker eugeneswalker enabled auto-merge (squash) August 1, 2022 20:41
@eugeneswalker eugeneswalker merged commit df4e66e into develop Aug 1, 2022
@eugeneswalker eugeneswalker deleted the kokkos-develop-set-cmake-cxx-standard branch August 1, 2022 23:12
bhatiaharsh pushed a commit to bhatiaharsh/spack that referenced this pull request Aug 8, 2022
…31841)

* kokkos@develop: set CMAKE_CXX_STANDARD instead of Kokkos_CXX_STANDARD

* use CMAKE_CXX_STANDARD regardless of kokkos version
alalazo pushed a commit to alalazo/spack that referenced this pull request Aug 17, 2022
…31841)

* kokkos@develop: set CMAKE_CXX_STANDARD instead of Kokkos_CXX_STANDARD

* use CMAKE_CXX_STANDARD regardless of kokkos version
haampie pushed a commit that referenced this pull request Aug 17, 2022
* kokkos@develop: set CMAKE_CXX_STANDARD instead of Kokkos_CXX_STANDARD

* use CMAKE_CXX_STANDARD regardless of kokkos version
marcost2 pushed a commit to marcost2/spack that referenced this pull request Aug 26, 2022
…31841)

* kokkos@develop: set CMAKE_CXX_STANDARD instead of Kokkos_CXX_STANDARD

* use CMAKE_CXX_STANDARD regardless of kokkos version
ma595 pushed a commit to ma595/spack that referenced this pull request Sep 13, 2022
…31841)

* kokkos@develop: set CMAKE_CXX_STANDARD instead of Kokkos_CXX_STANDARD

* use CMAKE_CXX_STANDARD regardless of kokkos version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants