Browse Source

Cpp:Add protobuf version check.

pull/567/head
Philip Liard 15 years ago
committed by Mihaela Rosca
parent
commit
0be6a31e1d
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      cpp/CMakeLists.txt

+ 7
- 0
cpp/CMakeLists.txt View File

@ -81,6 +81,13 @@ if (PROTOBUF_LIB STREQUAL "PROTOBUF_LIB-NOTFOUND")
"Can't find Google Protocol Buffers library. Please read README.")
endif ()
# Check Protocol Buffers version (if pkg-config available)
find_package (PkgConfig)
if (PKG_CONFIG_EXECUTABLE)
pkg_check_modules (PC_PROTOBUF REQUIRED protobuf>=2.4)
endif (PKG_CONFIG_EXECUTABLE)
# Find ICU
find_path (ICU_INCLUDE_DIR unicode/unistr.h unicode/normlzr.h)


Loading…
Cancel
Save