mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-03 20:47:37 +03:00
Add linker flags only on unix.
This commit is contained in:
parent
a1bfb1f319
commit
b4367a7ea1
1 changed files with 3 additions and 1 deletions
|
@ -34,7 +34,9 @@ if(CMAKE_COMPILER_IS_GNUCXX)
|
|||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wwrite-strings -Wformat-security -Werror-implicit-function-declaration")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wmissing-format-attribute -Wno-long-long")
|
||||
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-add-needed -Wl,--as-needed -Wl,--no-undefined")
|
||||
if( UNIX AND NOT APPLE )
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-add-needed -Wl,--as-needed -Wl,--no-undefined")
|
||||
endif( UNIX AND NOT APPLE )
|
||||
endif(CMAKE_COMPILER_IS_GNUCXX)
|
||||
|
||||
if( APPLE OR MINGW )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue