mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-06-24 06:46:40 +02:00
build with -Wall when using clang or gcc
This commit is contained in:
parent
36f7d86cad
commit
b8a3500222
1 changed files with 5 additions and 0 deletions
|
@ -67,6 +67,11 @@ if (NOT BUILD_SHARED_LIBS)
|
|||
target_compile_definitions(libchibi-common INTERFACE SEXP_STATIC_LIBRARY=1)
|
||||
endif()
|
||||
|
||||
target_compile_options(libchibi-common
|
||||
INTERFACE
|
||||
$<$<C_COMPILER_ID:GNU>:-Wall>
|
||||
$<$<OR:$<C_COMPILER_ID:AppleClang>,$<C_COMPILER_ID:Clang>>:-Wall>)
|
||||
|
||||
target_include_directories(libchibi-common
|
||||
INTERFACE
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
||||
|
|
Loading…
Add table
Reference in a new issue