Skip to content

Commit

Permalink
[cmake] Set the language and that we do not need C++ extensions.
Browse files Browse the repository at this point in the history
That fixes two cmake dev warnings:
  * The installed Kokkos configuration does not support CXX extensions.
  * Unable to determine default CMAKE_INSTALL_LIBDIR directory because no
    target architecture is known.  Please enable at least one language before
    including GNUInstallDirs.
  • Loading branch information
vgvassilev committed Mar 9, 2024
1 parent c3a4f8e commit 48527c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
cmake_minimum_required(VERSION 3.7.0)

enable_language(CXX)
set(CMAKE_CXX_EXTENSIONS NO)

include(GNUInstallDirs)

if(POLICY CMP0075)
Expand Down

0 comments on commit 48527c2

Please sign in to comment.