From 8dba9bfd438c7703c5d2ffb9d1e214554abac58a Mon Sep 17 00:00:00 2001 From: Igor Kovalenko Date: Tue, 9 Jul 2019 11:14:37 +0200 Subject: [PATCH] Fix check for SCHED_RESET_ON_FORK feature in clean build Configuration macro HAVE_SCHED_RESET_ON_FORK is not reflecting availability of SCHED_RESET_ON_FORK in config-kwin.h because that feature is detected after file is already generated. Fix this by moving config-kwin.h generation after feature detection. Differential Revision: https://phabricator.kde.org/D22337 --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 106ddca12b..120a20f0c1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -350,7 +350,6 @@ add_feature_info("prctl/procctl tracing control" "Required for disallowing ptrace on kwin_wayland process") check_include_file("sys/sysmacros.h" HAVE_SYS_SYSMACROS_H) -configure_file(config-kwin.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kwin.h ) check_include_file("linux/vt.h" HAVE_LINUX_VT_H) add_feature_info("linux/vt.h" @@ -366,6 +365,8 @@ add_feature_info("SCHED_RESET_ON_FORK" HAVE_SCHED_RESET_ON_FORK "Required for running kwin_wayland with real-time scheduling") +configure_file(config-kwin.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kwin.h ) + ########### global ############### set(kwin_effects_dbus_xml ${CMAKE_CURRENT_SOURCE_DIR}/org.kde.kwin.Effects.xml)