From 22f737e1394a9c5dccd3e8ae0eb950d90a6a96f4 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Tue, 29 Oct 2019 11:54:08 +0000 Subject: [PATCH] Add WARNING 'option's to bin2h and DoConfig --- DoConfig/CMakeLists.txt | 3 +++ bin2h/CMakeLists.txt | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/DoConfig/CMakeLists.txt b/DoConfig/CMakeLists.txt index e44264ed..495ee93f 100644 --- a/DoConfig/CMakeLists.txt +++ b/DoConfig/CMakeLists.txt @@ -8,6 +8,9 @@ if((${CMAKE_VERSION} VERSION_EQUAL 3.11) OR (${CMAKE_VERSION} VERSION_GREATER 3. cmake_policy(SET CMP0072 NEW) endif() +option(WARNINGS "Enable common compiler warnings (for gcc-compatible compilers and MSVC only)" OFF) +option(WARNINGS_ALL "Enable ALL compiler warnings (for clang and MSVC only)" OFF) +option(WARNINGS_FATAL "Stop compilation on any compiler warning (for gcc-compatible compilers and MSVC only)" OFF) option(FORCE_LOCAL_LIBS "Compile the built-in version of FLTK instead of using the system-provided one" OFF) project(DoConfig LANGUAGES CXX) diff --git a/bin2h/CMakeLists.txt b/bin2h/CMakeLists.txt index 5f306b6e..a6ab99b1 100644 --- a/bin2h/CMakeLists.txt +++ b/bin2h/CMakeLists.txt @@ -4,6 +4,10 @@ if((${CMAKE_VERSION} VERSION_EQUAL 3.9) OR (${CMAKE_VERSION} VERSION_GREATER 3.9 cmake_policy(SET CMP0069 NEW) endif() +option(WARNINGS "Enable common compiler warnings (for gcc-compatible compilers and MSVC only)" OFF) +option(WARNINGS_ALL "Enable ALL compiler warnings (for clang and MSVC only)" OFF) +option(WARNINGS_FATAL "Stop compilation on any compiler warning (for gcc-compatible compilers and MSVC only)" OFF) + project(bin2h LANGUAGES C) add_executable(bin2h "bin2h.c")