mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-12-23 13:47:47 +00:00
enforce static libraries when building statically
This commit is contained in:
parent
57de025c60
commit
6b7ac4b37f
1 changed files with 8 additions and 0 deletions
|
@ -87,6 +87,14 @@ else()
|
||||||
endif()
|
endif()
|
||||||
set(STATIC ${DEFAULT_STATIC} CACHE BOOL "Link libraries statically")
|
set(STATIC ${DEFAULT_STATIC} CACHE BOOL "Link libraries statically")
|
||||||
|
|
||||||
|
IF(STATIC)
|
||||||
|
IF(MSVC)
|
||||||
|
SET(CMAKE_FIND_LIBRARY_SUFFIXES .lib .dll.a .a ${CMAKE_FIND_LIBRARY_SUFFIXES})
|
||||||
|
ELSE()
|
||||||
|
SET(CMAKE_FIND_LIBRARY_SUFFIXES .a ${CMAKE_FIND_LIBRARY_SUFFIXES})
|
||||||
|
ENDIF()
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
if (UNIX AND NOT APPLE)
|
if (UNIX AND NOT APPLE)
|
||||||
# Note that at the time of this writing the -Wstrict-prototypes flag added below will make this fail
|
# Note that at the time of this writing the -Wstrict-prototypes flag added below will make this fail
|
||||||
find_package(Threads)
|
find_package(Threads)
|
||||||
|
|
Loading…
Reference in a new issue