mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-01 11:06:44 +01:00
cmake: add option to link dependencies statically
This commit is contained in:
parent
8e1ece69f7
commit
314588640e
1 changed files with 5 additions and 0 deletions
|
@ -26,6 +26,11 @@ if (NOT LIBSUPERDERPY_CONFIG_INCLUDED)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set(LIBSUPERDERPY_STATIC_DEPS "no" CACHE STRING "Link dependencies (e.g. Allegro) statically." )
|
||||||
|
if(LIBSUPERDERPY_STATIC_DEPS)
|
||||||
|
SET(CMAKE_FIND_LIBRARY_SUFFIXES .lib .a)
|
||||||
|
endif(LIBSUPERDERPY_STATIC_DEPS)
|
||||||
|
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
if(CMAKE_INSTALL_PREFIX MATCHES "/usr/local")
|
if(CMAKE_INSTALL_PREFIX MATCHES "/usr/local")
|
||||||
set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}")
|
set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}")
|
||||||
|
|
Loading…
Reference in a new issue