mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 18:47:36 -07:00
12 lines
526 B
CMake
Executable File
12 lines
526 B
CMake
Executable File
set(UPNPC_BUILD_STATIC ON CACHE BOOL "Build static library")
|
|
set(UPNPC_BUILD_SHARED OFF CACHE BOOL "Build shared library")
|
|
set(UPNPC_BUILD_TESTS OFF CACHE BOOL "Build test executables")
|
|
add_subdirectory(miniupnpc)
|
|
|
|
set_property(TARGET upnpc-static PROPERTY FOLDER "external")
|
|
if(MSVC)
|
|
set_property(TARGET upnpc-static APPEND_STRING PROPERTY COMPILE_FLAGS " -wd4244 -wd4267")
|
|
elseif(NOT MSVC)
|
|
set_property(TARGET upnpc-static APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-undef -Wno-unused-result -Wno-unused-value")
|
|
endif()
|