Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/astro/libosmpbf/files/patch-osmpbf_CMakeLists.txt
16461 views
1
--- osmpbf/CMakeLists.txt.orig 2024-03-11 08:26:22 UTC
2
+++ osmpbf/CMakeLists.txt
3
@@ -1,13 +1,13 @@ add_library(osmpbf STATIC ${CPPS})
4
protobuf_generate_cpp(CPPS HS fileformat.proto osmformat.proto)
5
6
add_library(osmpbf STATIC ${CPPS})
7
-target_compile_features(osmpbf PUBLIC cxx_std_11)
8
+target_compile_features(osmpbf PUBLIC cxx_std_17)
9
target_link_libraries(osmpbf PRIVATE protobuf::libprotobuf)
10
target_include_directories(osmpbf SYSTEM PUBLIC ${Protobuf_INCLUDE_DIRS})
11
install(TARGETS osmpbf ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
12
13
add_library(osmpbf_shared SHARED ${CPPS})
14
-target_compile_features(osmpbf_shared PUBLIC cxx_std_11)
15
+target_compile_features(osmpbf_shared PUBLIC cxx_std_17)
16
target_link_libraries(osmpbf_shared PRIVATE protobuf::libprotobuf)
17
target_include_directories(osmpbf_shared SYSTEM PUBLIC ${Protobuf_INCLUDE_DIRS})
18
set_target_properties(osmpbf_shared PROPERTIES OUTPUT_NAME osmpbf
19
20