mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 18:04:25 +09:00
cmake: Return back the DEFAULT_C_COMPILE_FLAGS
Accidentally removed in 1689b83d0f.
Reported in #185 by Peter Kästle
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Norbert Pocs <npocs@redhat.com>
This commit is contained in:
@@ -335,6 +335,9 @@ endif (WITH_SYMBOL_VERSIONING AND HAVE_LD_VERSION_SCRIPT AND ABIMAP_FOUND)
|
||||
# This gets built as a static library, if -DBUILD_SHARED_LIBS=OFF is passed to
|
||||
# cmake.
|
||||
add_library(ssh ${libssh_SRCS})
|
||||
target_compile_options(ssh
|
||||
PRIVATE
|
||||
${DEFAULT_C_COMPILE_FLAGS})
|
||||
if (CYGWIN)
|
||||
target_compile_definitions(ssh PRIVATE _GNU_SOURCE)
|
||||
endif ()
|
||||
@@ -394,6 +397,9 @@ install(EXPORT libssh-config
|
||||
|
||||
if (BUILD_STATIC_LIB)
|
||||
add_library(ssh-static STATIC ${libssh_SRCS})
|
||||
target_compile_options(ssh-static
|
||||
PRIVATE
|
||||
${DEFAULT_C_COMPILE_FLAGS})
|
||||
if (CYGWIN)
|
||||
target_compile_definitions(ssh-static PRIVATE _GNU_SOURCE)
|
||||
endif ()
|
||||
|
||||
Reference in New Issue
Block a user