aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libphonenumber/enable-cpp17.patch
blob: f582afadf2c629b48d38a952692b11a25baad510 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt
index 27e4680..88df056 100644
--- a/cpp/CMakeLists.txt
+++ b/cpp/CMakeLists.txt
@@ -459,11 +459,13 @@ if (BUILD_STATIC_LIB)
   add_library (phonenumber STATIC ${SOURCES})
   target_link_libraries (phonenumber ${LIBRARY_DEPS})
   target_include_directories(phonenumber PUBLIC $<INSTALL_INTERFACE:include>)
+  target_compile_features(phonenumber PUBLIC cxx_std_17)
 
   if (BUILD_GEOCODER)
     add_library (geocoding STATIC ${GEOCODING_SOURCES})
     target_link_libraries (geocoding ${LIBRARY_DEPS})
     target_include_directories(geocoding PUBLIC $<INSTALL_INTERFACE:include>)
+    target_compile_features(geocoding PUBLIC cxx_std_17)
     add_dependencies (geocoding generate_geocoding_data)
     add_dependencies (phonenumber generate_geocoding_data)
   endif ()
@@ -479,6 +481,7 @@ if (BUILD_SHARED_LIBS)
   add_library (phonenumber-shared SHARED ${SOURCES})
   target_link_libraries (phonenumber-shared ${LIBRARY_DEPS})
   target_include_directories(phonenumber-shared PUBLIC $<INSTALL_INTERFACE:include>)
+  target_compile_features(phonenumber-shared PUBLIC cxx_std_17)
 
   set_target_properties (phonenumber-shared
     PROPERTIES
@@ -495,6 +498,7 @@ if (BUILD_SHARED_LIBS)
     add_library (geocoding-shared SHARED ${GEOCODING_SOURCES})
     target_link_libraries (geocoding-shared ${LIBRARY_DEPS})
     target_include_directories(geocoding-shared PUBLIC $<INSTALL_INTERFACE:include>)
+    target_compile_features(geocoding-shared PUBLIC cxx_std_17)
     add_dependencies (geocoding-shared generate_geocoding_data)
     add_dependencies (phonenumber-shared generate_geocoding_data)