diff options
author | fluffypony <ric@spagni.net> | 2014-09-09 14:03:42 +0200 |
---|---|---|
committer | fluffypony <ric@spagni.net> | 2014-09-09 14:03:42 +0200 |
commit | 5a6599148018aa6b3557834acd47465064ad3bfc (patch) | |
tree | dc13b2826c6f5cb4b8d9ce1abdb6986c39fd1e11 /external | |
parent | FreeBSD alloca.h reference fixed (diff) | |
download | monero-5a6599148018aa6b3557834acd47465064ad3bfc.tar.xz |
exclude local miniupnpc for FreeBSD, install from ports instead
Diffstat (limited to 'external')
-rwxr-xr-x | external/CMakeLists.txt | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index 0a7a5d1ae..547fb7e96 100755 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -1,11 +1,13 @@ -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) +if(NOT FREEBSD) + 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() + 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() +endif()
\ No newline at end of file |