Set minimum OpenDHT version.

This commit is contained in:
Nicolás Ortega Froysa 2017-10-30 16:45:06 +01:00
parent e40d5e8329
commit 433860b3cd
No known key found for this signature in database
GPG Key ID: FEC70E3BAE2E69BF

View File

@ -32,7 +32,7 @@ option(BUILD_SHARED_LIB
find_package(GnuTLS 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/"
@ -43,7 +43,8 @@ set(SRCS
src/error.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_RELEASE "-O3")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-g -O3")