From 95b412df193b28583533ea87d67204544d1cecc2 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 9 Jul 2017 16:23:56 +0200 Subject: [PATCH] Move project() call to CMakeLists.txt (#1909) CMake "fakes" a call to "project(Project C CXX)" if it does not see a project() call in CMakeLists.txt. Since we had this call in a different file, this default applied. This meant that CMake unnecessarily required a C++ compiler. Fix/work-around this by moving the call to project() into CMakeLists.txt Reference: https://github.com/awesomeWM/awesome/pull/1907#discussion_r125581273 Signed-off-by: Uli Schlachter --- CMakeLists.txt | 1 + awesomeConfig.cmake | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index eb0da86e0..364968f31 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,5 @@ cmake_minimum_required(VERSION 3.0.0) +project(awesome C) # Require an out-of-source build. We generate an awesomerc.lua in the build dir # from the one in the source dir and this does not work otherwise. diff --git a/awesomeConfig.cmake b/awesomeConfig.cmake index 9c767c756..b6b5661e9 100644 --- a/awesomeConfig.cmake +++ b/awesomeConfig.cmake @@ -6,8 +6,6 @@ set(VERSION devel) set(CODENAME "Technologic") -project(${PROJECT_AWE_NAME} C) - option(WITH_DBUS "build with D-BUS" ON) option(GENERATE_MANPAGES "generate manpages" ON) option(COMPRESS_MANPAGES "compress manpages" ON)