1
0
mirror of https://github.com/CLIUtils/CLI11.git synced 2025-05-01 21:23:52 +00:00

Fixing warning add

This commit is contained in:
Henry Fredrick Schreiner 2017-02-19 14:31:11 -05:00
parent a6728fd112
commit 22612c512c

View File

@ -14,8 +14,12 @@ else()
endif()
# Be moderately paranoid with flags
# But only globally, don't inherit
add_compile_options(-pedantic -Wall -Wextra -O0)
if(CMAKE_COMPILER_IS_GNUCC)
add_definitions("-Wall -Wextra")
endif()
if(MSVC)
add_definitions("/W4")
endif()
add_library(CLI INTERFACE)
target_include_directories(CLI INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/include")