aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2020-10-29 15:32:26 +0100
committerPřemysl Eric Janouch <p@janouch.name>2020-10-29 15:32:26 +0100
commitd71c47f8ce7aecdc4856630e9d73a48912be68c1 (patch)
tree11cf96a39f2198a73f6dd865393802b2e8b4e820
parent425ea57b17b364baf5acf3f8bf1453f1d8533c9c (diff)
downloadliberty-d71c47f8ce7aecdc4856630e9d73a48912be68c1.tar.gz
liberty-d71c47f8ce7aecdc4856630e9d73a48912be68c1.tar.xz
liberty-d71c47f8ce7aecdc4856630e9d73a48912be68c1.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 6b1a567..1527da9 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}/cmake)
@@ -18,7 +18,7 @@ pkg_check_modules (libssl REQUIRED libssl libcrypto)
if ("${CMAKE_SYSTEM_NAME}" MATCHES "BSD")
# Our POSIX version macros make these undefined
add_definitions (-D__BSD_VISIBLE=1 -D_BSD_SOURCE=1)
-endif ("${CMAKE_SYSTEM_NAME}" MATCHES "BSD")
+endif ()
set (common_libraries ${libssl_LIBRARIES})
include_directories (${libssl_INCLUDE_DIRS})
@@ -30,8 +30,8 @@ foreach (extra iconv rt)
find_library (extra_lib_${extra} ${extra})
if (extra_lib_${extra})
list (APPEND common_libraries ${extra})
- endif (extra_lib_${extra})
-endforeach (extra)
+ endif ()
+endforeach ()
# Build some unit tests
include_directories (${PROJECT_SOURCE_DIR})
@@ -41,4 +41,4 @@ foreach (name liberty proto)
add_threads (test-${name})
target_link_libraries (test-${name} ${common_libraries})
add_test (NAME test-${name} COMMAND test-${name})
-endforeach (name)
+endforeach ()