You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
set(CMAKE_CXX_STANDARD "${CMAKE_CXX_STANDARD_DEFAULT}"CACHESTRING"C++ Standard: 98, 11, 14, 17, 20 or 23")
endif()
so the option KokkosTools_REUSE_KOKKOS_COMPILER can be expected not to work.
Ways forward could be
remove the option KokkosTools_REUSE_KOKKOS_COMPILER
use FORCE in the set command
Using FORCE would indeed "reuse" the compiler, but it may not be a good solution because some flags may have been set already in the toolchain for the compiler that is now being overridden with force.
Note that the CMake documentation says that CMAKE_CXX_COMPILER may be set only once:
Because the call to
project
can be expected to already setCMAKE_CXX_COMPILER
kokkos-tools/CMakeLists.txt
Line 3 in a9453b2
the option
KokkosTools_REUSE_KOKKOS_COMPILER
can no longer changeCMAKE_CXX_COMPILER
kokkos-tools/CMakeLists.txt
Lines 65 to 68 in a9453b2
so the option
KokkosTools_REUSE_KOKKOS_COMPILER
can be expected not to work.Ways forward could be
KokkosTools_REUSE_KOKKOS_COMPILER
FORCE
in theset
commandUsing
FORCE
would indeed "reuse" the compiler, but it may not be a good solution because some flags may have been set already in the toolchain for the compiler that is now being overridden with force.Note that the
CMake
documentation says thatCMAKE_CXX_COMPILER
may be set only once:Joint work with @romintomasetti.
The text was updated successfully, but these errors were encountered: