Add WARNING 'option's to bin2h and DoConfig
This commit is contained in:
parent
404d748da7
commit
22f737e139
2 changed files with 7 additions and 0 deletions
|
@ -8,6 +8,9 @@ if((${CMAKE_VERSION} VERSION_EQUAL 3.11) OR (${CMAKE_VERSION} VERSION_GREATER 3.
|
||||||
cmake_policy(SET CMP0072 NEW)
|
cmake_policy(SET CMP0072 NEW)
|
||||||
endif()
|
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)
|
option(FORCE_LOCAL_LIBS "Compile the built-in version of FLTK instead of using the system-provided one" OFF)
|
||||||
|
|
||||||
project(DoConfig LANGUAGES CXX)
|
project(DoConfig LANGUAGES CXX)
|
||||||
|
|
|
@ -4,6 +4,10 @@ if((${CMAKE_VERSION} VERSION_EQUAL 3.9) OR (${CMAKE_VERSION} VERSION_GREATER 3.9
|
||||||
cmake_policy(SET CMP0069 NEW)
|
cmake_policy(SET CMP0069 NEW)
|
||||||
endif()
|
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)
|
project(bin2h LANGUAGES C)
|
||||||
|
|
||||||
add_executable(bin2h "bin2h.c")
|
add_executable(bin2h "bin2h.c")
|
||||||
|
|
Loading…
Add table
Reference in a new issue