From e32221a10424838a897b2f3a635e67834f0b9f56 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Wed, 15 Jun 2022 08:56:28 +0300 Subject: [PATCH] cmake: add -Wall to CFLAGS for gcc and clang. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 487faab..4253f16 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,7 +30,8 @@ if(APPLE) list(APPEND PHYSFS_M_SRCS src/physfs_platform_apple.m) endif() -if(CMAKE_COMPILER_IS_GNUCC) +if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang") + add_compile_options(-Wall) # Don't use -rpath. set(CMAKE_SKIP_RPATH ON CACHE BOOL "Skip RPATH" FORCE) endif()