diff --git a/CMakeLists.txt b/CMakeLists.txt index 6423211..04bcbfe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,7 +68,7 @@ target_include_directories(multiprocess PUBLIC ${Boost_INCLUDE_DIR}) set_target_properties(multiprocess PROPERTIES PUBLIC_HEADER "${MP_PUBLIC_HEADERS}" - CXX_STANDARD 14 + CXX_STANDARD 17 CXX_STANDARD_REQUIRED YES) install(TARGETS multiprocess EXPORT Multiprocess ARCHIVE DESTINATION lib PUBLIC_HEADER DESTINATION include/mp) @@ -83,7 +83,7 @@ target_link_libraries(mpgen PRIVATE Threads::Threads) target_link_libraries(mpgen PRIVATE multiprocess) set_target_properties(mpgen PROPERTIES INSTALL_RPATH_USE_LINK_PATH TRUE - CXX_STANDARD 14 + CXX_STANDARD 17 CXX_STANDARD_REQUIRED YES) install(TARGETS mpgen EXPORT Multiprocess RUNTIME DESTINATION bin) @@ -135,7 +135,7 @@ if(BUILD_TESTING AND TARGET CapnProto::kj-test) target_link_libraries(mptest PRIVATE Threads::Threads) target_link_libraries(mptest PRIVATE multiprocess) set_target_properties(mptest PROPERTIES - CXX_STANDARD 14 + CXX_STANDARD 17 CXX_STANDARD_REQUIRED YES) add_test(NAME mptest COMMAND mptest) endif() diff --git a/pkgconfig/libmultiprocess.pc.in b/pkgconfig/libmultiprocess.pc.in index 506e356..d8bda42 100644 --- a/pkgconfig/libmultiprocess.pc.in +++ b/pkgconfig/libmultiprocess.pc.in @@ -9,4 +9,4 @@ Description: Multiprocess IPC library Version: 0.0 Libs: -L${libdir} -lmultiprocess -L${capnp_prefix}/lib -lcapnp-rpc -lcapnp -lkj-async -lkj -pthread -lpthread -Cflags: -std=c++14 -I${includedir} -I${capnp_prefix}/include -pthread +Cflags: -std=c++17 -I${includedir} -I${capnp_prefix}/include -pthread