mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-11 17:19:07 +08:00
341d02562a
* [abseil] update to latest release (20230125.0) * Fix DLL support * Update version * I do not understand the warning about version-string, fixing it seems to make things worse * [etcd-cpp-apiv3] Abseil requires C++14 * Update a downstream port * I just cannot get these right, argh * Try to switch from version-string to version (again) * Regenerate versions * Improve etcd handling of C++ standard * Regenerate versions * Use target_link_libraries to get compilation flags * Update version files
17 lines
553 B
Diff
17 lines
553 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 2caacf8..ecdbce3 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -78,10 +78,7 @@ macro(use_cxx target)
|
|
target_compile_options(${target} PRIVATE "-std=c++${ETCD_CMAKE_CXX_STANDARD}")
|
|
endif()
|
|
else()
|
|
- set_target_properties(${target} PROPERTIES
|
|
- CXX_STANDARD ${ETCD_CMAKE_CXX_STANDARD}
|
|
- CXX_STANDARD_REQUIRED ON
|
|
- )
|
|
+ target_compile_features(${target} PUBLIC cxx_std_${ETCD_CMAKE_CXX_STANDARD})
|
|
endif()
|
|
endmacro(use_cxx)
|
|
|