aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2020-10-29 16:11:29 +0100
committerPřemysl Eric Janouch <p@janouch.name>2020-10-29 16:11:29 +0100
commitaec905b2918913e12b2e12b63a43cb7551c7b2bd (patch)
tree14f1c37b19cd1cf1388b3ae0913740ceaed4f822
parent9e09ef39b730a6b217d5f16e81df9a437a7e384d (diff)
downloaddesktop-tools-aec905b2918913e12b2e12b63a43cb7551c7b2bd.tar.gz
desktop-tools-aec905b2918913e12b2e12b63a43cb7551c7b2bd.tar.xz
desktop-tools-aec905b2918913e12b2e12b63a43cb7551c7b2bd.zip
CMakeLists.txt: omit end{if,foreach} expressions
Their usefulness was almost negative.
-rw-r--r--CMakeLists.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 97aa3ce..1bf55c5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,7 +6,7 @@ if ("${CMAKE_C_COMPILER_ID}" MATCHES "GNU" OR CMAKE_COMPILER_IS_GNUCC)
# -Wunused-function is pretty annoying here, as everything is static
set (wdisabled "-Wno-unused-function")
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wall -Wextra ${wdisabled}")
-endif ("${CMAKE_C_COMPILER_ID}" MATCHES "GNU" OR CMAKE_COMPILER_IS_GNUCC)
+endif ()
# Dependencies
set (CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/liberty/cmake)
@@ -26,19 +26,19 @@ include_directories (${PROJECT_BINARY_DIR})
# Build
foreach (name brightness fancontrol-ng iexec input-switch priod siprandom)
add_executable (${name} ${name}.c)
-endforeach (name)
+endforeach ()
foreach (name big-brother paswitch wmstatus)
add_executable (${name} ${name}.c)
target_link_libraries (${name} ${dependencies_LIBRARIES})
-endforeach (name)
+endforeach ()
add_threads (wmstatus)
if (WITH_GDM)
include_directories (${gdm_INCLUDE_DIRS})
add_executable (gdm-switch-user gdm-switch-user.c)
target_link_libraries (gdm-switch-user ${gdm_LIBRARIES})
-endif (WITH_GDM)
+endif ()
# The files to be installed
include (GNUInstallDirs)
@@ -65,7 +65,7 @@ install (FILES
if (WITH_GDM)
install (TARGETS gdm-switch-user DESTINATION ${CMAKE_INSTALL_BINDIR})
-endif (WITH_GDM)
+endif ()
install (TARGETS wmstatus paswitch brightness input-switch fancontrol-ng priod
iexec siprandom DESTINATION ${CMAKE_INSTALL_BINDIR})