From 993c62d280ebd3db61621d4e8b2c3f32174bbdeb Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Sat, 9 Mar 2024 18:27:14 +0000 Subject: [PATCH] [cmake] Set the language and that we do not need C++ extensions. 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. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7e6648ddf..cb3aa603f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,8 @@ cmake_minimum_required(VERSION 3.7.0) +enable_language(CXX) +set(CMAKE_CXX_EXTENSIONS NO) + include(GNUInstallDirs) if(POLICY CMP0075)