File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 3.5 )
1+ cmake_minimum_required (VERSION 3.0 )
22project (msgflo_cpp CXX )
33
44set (MSGFLO_VERSION 0.0.3)
55
6- # AMQP-CPP configuration
6+ # Specify C++11
7+ add_compile_options (-std=c++11 )
78
9+ # AMQP-CPP configuration
810set (amqp_install ${CMAKE_CURRENT_BINARY_DIR} /thirdparty-install/amqpcpp)
911
1012include (ExternalProject )
@@ -55,7 +57,6 @@ target_link_libraries(msgflo
5557 PRIVATE ${amqp_install} /lib/libamqpcpp.a
5658 PRIVATE ${mosquitto_LIB}
5759 PRIVATE ${libev_LIB} )
58- target_compile_features (msgflo PUBLIC cxx_range_for )
5960install (DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR} /include/"
6061 DESTINATION "include" )
6162
Original file line number Diff line number Diff line change 55mkdir -p build
66cd build
77cmake .. -DCMAKE_INSTALL_PREFIX=$HOME /opt/msgflo-cpp
8- make -j
8+ make -j4
99make install
1010cd ..
Original file line number Diff line number Diff line change @@ -11,5 +11,4 @@ else ()
1111endif ()
1212
1313add_executable (repeat repeat.cpp )
14- target_compile_features (repeat PUBLIC cxx_range_for )
1514target_link_libraries (repeat PUBLIC ${msgflo_lib} ev pthread )
You can’t perform that action at this time.
0 commit comments