mirror of
https://github.com/status-im/miniupnp.git
synced 2025-01-11 22:54:17 +00:00
677e0db636
miniupnpc::miniupnpc becomes an ALIAS for the shared library, if available, and the static library otherwise. Users of the installed library can use MINIUPNPC_USE_STATIC_LIBS to force the use of the static library.
7 lines
306 B
CMake
7 lines
306 B
CMake
if(NOT EXISTS "${CMAKE_CURRENT_LIST_DIR}/libminiupnpc-shared.cmake" OR MINIUPNPC_USE_STATIC_LIBS)
|
|
include("${CMAKE_CURRENT_LIST_DIR}/miniupnpc-private.cmake")
|
|
include("${CMAKE_CURRENT_LIST_DIR}/libminiupnpc-static.cmake")
|
|
else()
|
|
include("${CMAKE_CURRENT_LIST_DIR}/libminiupnpc-shared.cmake")
|
|
endif()
|