1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-28 01:41:48 +03:00

Only add additional warnings if we have a GNU compiler.

This commit is contained in:
Andreas Schneider
2009-07-21 11:10:09 +02:00
parent 41a8fb5810
commit 1a6038baa5

View File

@ -34,7 +34,9 @@ if (UNIX AND NOT WIN32)
add_definitions(${_lfs_CFLAGS}) add_definitions(${_lfs_CFLAGS})
endif (CMAKE_SIZEOF_VOID_P MATCHES "8") endif (CMAKE_SIZEOF_VOID_P MATCHES "8")
add_definitions(-Wall -Wextra -Wmissing-prototypes -Wdeclaration-after-statement -Wunused) if (CMAKE_COMPILER_IS_GNUCC)
add_definitions(-Wall -Wextra -Wmissing-prototypes -Wdeclaration-after-statement -Wunused)
endif (CMAKE_COMPILER_IS_GNUCC)
check_c_compiler_flag("-fstack-protector" WITH_STACK_PROTECTOR) check_c_compiler_flag("-fstack-protector" WITH_STACK_PROTECTOR)
if (WITH_STACK_PROTECTOR) if (WITH_STACK_PROTECTOR)