aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2020-10-29 16:08:34 +0100
committerPřemysl Eric Janouch <p@janouch.name>2020-10-29 16:09:31 +0100
commitd46305d7ab1ccd9db9dca4bf224682940a48e2f7 (patch)
treeac67615e4efb91a82ddd014c873794bec3eba84f
parent7edd9720cd7816ff5d557e46d84c463bd9da0b42 (diff)
downloadwdmtg-d46305d7ab1ccd9db9dca4bf224682940a48e2f7.tar.gz
wdmtg-d46305d7ab1ccd9db9dca4bf224682940a48e2f7.tar.xz
wdmtg-d46305d7ab1ccd9db9dca4bf224682940a48e2f7.zip
CMakeLists.txt: omit end{if,foreach} expressionsorigin/master
Their usefulness was almost negative.
-rw-r--r--CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d8ff074..09dde0d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,7 +5,7 @@ project (wdmtg VERSION 0.1.0 LANGUAGES C)
if ("${CMAKE_C_COMPILER_ID}" MATCHES "GNU" OR CMAKE_COMPILER_IS_GNUCC)
set (CMAKE_C_FLAGS_RELEASE
"${CMAKE_C_FLAGS_RELEASE} -Wno-ignored-qualifiers -Wno-incompatible-pointer-types")
-endif ("${CMAKE_C_COMPILER_ID}" MATCHES "GNU" OR CMAKE_COMPILER_IS_GNUCC)
+endif ()
# Options
option (OPTION_NOINSTALL "Only for developers; work without installing" OFF)
@@ -16,10 +16,10 @@ if (OPTION_NOINSTALL)
elseif (WIN32)
set (project_SHARE_DIR ../share)
set (project_INSTALL_SHARE_DIR share)
-else (OPTION_NOINSTALL)
+else ()
set (project_SHARE_DIR ${CMAKE_INSTALL_PREFIX}/share/${PROJECT_NAME})
set (project_INSTALL_SHARE_DIR share/${PROJECT_NAME})
-endif (OPTION_NOINSTALL)
+endif ()
# Gather package information
set (CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)