Set minimum OpenDHT version.
This commit is contained in:
parent
e40d5e8329
commit
433860b3cd
@ -32,7 +32,7 @@ option(BUILD_SHARED_LIB
|
|||||||
|
|
||||||
find_package(GnuTLS REQUIRED)
|
find_package(GnuTLS REQUIRED)
|
||||||
find_package(PkgConfig REQUIRED)
|
find_package(PkgConfig REQUIRED)
|
||||||
pkg_search_module(OPENDHT REQUIRED opendht>=1.4.0)
|
pkg_check_modules(OPENDHT REQUIRED opendht>=1.4.0)
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
"include/"
|
"include/"
|
||||||
@ -43,7 +43,8 @@ set(SRCS
|
|||||||
src/error.cpp
|
src/error.cpp
|
||||||
src/node.cpp)
|
src/node.cpp)
|
||||||
|
|
||||||
set(CMAKE_CXX_FLAGS "-std=c++11 -Wall -Wextra -Wpedantic -Werror -Wfatal-errors -pedantic-errors -fno-elide-constructors")
|
set(CMAKE_CXX_FLAGS
|
||||||
|
"-std=c++11 -Wall -Wextra -Wpedantic -Werror -Wfatal-errors -pedantic-errors -fno-elide-constructors")
|
||||||
set(CMAKE_CXX_FLAGS_DEBUG "-g -O0")
|
set(CMAKE_CXX_FLAGS_DEBUG "-g -O0")
|
||||||
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
|
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
|
||||||
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-g -O3")
|
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-g -O3")
|
||||||
|
Loading…
Reference in New Issue
Block a user