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")