Created
January 20, 2014 16:28
-
-
Save mcobzarenco/8523381 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/CMakeLists.txt b/CMakeLists.txt | |
index decc40c..a3220e1 100644 | |
--- a/CMakeLists.txt | |
+++ b/CMakeLists.txt | |
@@ -10,7 +10,7 @@ option(rpcz_build_static "Build static library." OFF) | |
option(rpcz_build_examples "Build rpcz's examples." OFF) | |
find_package(ProtobufPlugin REQUIRED) | |
-find_package(Boost REQUIRED COMPONENTS thread program_options) | |
+find_package(Boost REQUIRED COMPONENTS thread program_options system) | |
find_package(ZeroMQ REQUIRED) | |
include_directories(${ZeroMQ_INCLUDE_DIRS}) | |
@@ -21,7 +21,7 @@ include_directories(${PROJECT_BINARY_DIR}/src) | |
cmake_minimum_required (VERSION 2.8.0) | |
set(CMAKE_CXX_FLAGS | |
- "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter") | |
+ "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -std=c++11") | |
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS} -g -Werror") | |
set(CMAKE_OSX_ARCHITECTURES x86_64) | |
diff --git a/src/rpcz/CMakeLists.txt b/src/rpcz/CMakeLists.txt | |
index 55a0c75..fd081d9 100644 | |
--- a/src/rpcz/CMakeLists.txt | |
+++ b/src/rpcz/CMakeLists.txt | |
@@ -17,6 +17,7 @@ set(RPCZ_SOURCES | |
${PROTO_SOURCES}) | |
set(RPCZ_LIB_DEPS ${ZeroMQ_LIBRARIES} | |
${PROTOBUF_LIBRARY} | |
+ ${Boost_SYSTEM_LIBRARIES} | |
${Boost_THREAD_LIBRARIES}) | |
add_library(rpcz SHARED ${RPCZ_SOURCES}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment