From 0c9c5ffe0fb010f6bbadaaa8fd706925847ccaf9 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Tue, 10 Oct 2017 19:30:42 +0800 Subject: [PATCH] cmake: set supported language the right way the second param of enable_launage() is not used, we should call it multiple times to enable more than one language. switch to project() command for simplicity. Signed-off-by: Kefu Chai --- CMakeLists.txt | 2 +- src/CMakeLists.txt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b76c557ebba..3b87d963837 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 2.8.11) -project(ceph) +project(ceph CXX C ASM) set(VERSION 12.1.2) if(POLICY CMP0046) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 77d0f981988..02641dcb24b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,6 +1,5 @@ include(GetGitRevisionDescription) -enable_language(C ASM) include(GNUInstallDirs) # for erasure and compressor plugins set(CMAKE_INSTALL_PKGLIBDIR ${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}) -- 2.39.5