Add comment at the top
This commit is contained in:
parent
47c849cc98
commit
98e580f29c
|
@ -1,10 +1,12 @@
|
|||
cmake_minimum_required(VERSION 3.16)
|
||||
project(microirc LANGUAGES C)
|
||||
|
||||
# NOTE: Do these seem too annoying? Try writing good code then.
|
||||
# Code that triggers these warnings will not be accepted unless it has a good reason to trigger them.
|
||||
if (CMAKE_C_COMPILER_ID STREQUAL "GNU")
|
||||
add_compile_options(-Wall -Wextra -Werror -Wformat-overflow=2 -Wformat-security -Winit-self -Wstrict-overflow=2 -Wstringop-overflow=2 -Walloc-zero -Wduplicated-branches -Wduplicated-cond -Wtrampolines -Wfloat-equal -Wshadow -Wunsafe-loop-optimizations -Wparentheses -fanalyzer -fstack-check)
|
||||
add_compile_options(-Wall -Wextra -Werror -Wformat-overflow=2 -Wformat-security -Winit-self -Wstrict-overflow=2 -Wstringop-overflow=2 -Walloc-zero -Wduplicated-branches -Wduplicated-cond -Wtrampolines -Wfloat-equal -Wshadow -Wunsafe-loop-optimizations -Wparentheses -pedantic -fanalyzer -fstack-check)
|
||||
elseif (CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
||||
add_compile_options(-Weverything)
|
||||
add_compile_options(-Weverything -pedantic)
|
||||
endif()
|
||||
|
||||
if (NOT CMAKE_BUILD_TYPE)
|
||||
|
@ -31,8 +33,6 @@ endif()
|
|||
add_library(uirc SHARED ${build_FILES})
|
||||
set_property(TARGET uirc PROPERTY C_STANDARD 99)
|
||||
|
||||
# NOTE: Do these seem too annoying? Try writing good code then.
|
||||
# Code that triggers these warnings will not be accepted unless it has a good reason to trigger them.
|
||||
install(DIRECTORY "${CMAKE_SOURCE_DIR}/include/"
|
||||
DESTINATION "include/uirc"
|
||||
FILES_MATCHING PATTERN "*.h"
|
||||
|
|
Reference in New Issue