mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 11:07:10 +01:00
[abseil] Add compiler C++17. (#8248)
* [abseil] Add compiler C++17. * Add feature c++17.
This commit is contained in:
parent
d2512ed8e3
commit
f933c30226
@ -1,7 +1,10 @@
|
|||||||
Source: abseil
|
Source: abseil
|
||||||
Version: 2020-03-03
|
Version: 2020-03-03-1
|
||||||
Homepage: https://github.com/abseil/abseil-cpp
|
Homepage: https://github.com/abseil/abseil-cpp
|
||||||
Description: an open-source collection designed to augment the C++ standard library.
|
Description: an open-source collection designed to augment the C++ standard library.
|
||||||
Abseil is an open-source collection of C++ library code designed to augment the C++ standard library. The Abseil library code is collected from Google's own C++ code base, has been extensively tested and used in production, and is the same code we depend on in our daily coding lives.
|
Abseil is an open-source collection of C++ library code designed to augment the C++ standard library. The Abseil library code is collected from Google's own C++ code base, has been extensively tested and used in production, and is the same code we depend on in our daily coding lives.
|
||||||
In some cases, Abseil provides pieces missing from the C++ standard; in others, Abseil provides alternatives to the standard for special needs we've found through usage in the Google code base. We denote those cases clearly within the library code we provide you.
|
In some cases, Abseil provides pieces missing from the C++ standard; in others, Abseil provides alternatives to the standard for special needs we've found through usage in the Google code base. We denote those cases clearly within the library code we provide you.
|
||||||
Abseil is not meant to be a competitor to the standard library; we've just found that many of these utilities serve a purpose within our code base, and we now want to provide those resources to the C++ community as a whole.
|
Abseil is not meant to be a competitor to the standard library; we've just found that many of these utilities serve a purpose within our code base, and we now want to provide those resources to the C++ community as a whole.
|
||||||
|
|
||||||
|
Feature: c++17
|
||||||
|
Description: Enable compiler C++17.
|
||||||
|
@ -11,9 +11,16 @@ vcpkg_from_github(
|
|||||||
fix-uwp-build.patch
|
fix-uwp-build.patch
|
||||||
)
|
)
|
||||||
|
|
||||||
|
set(CMAKE_CXX_STANDARD )
|
||||||
|
if("c++17" IN_LIST FEATURES)
|
||||||
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
|
endif()
|
||||||
|
|
||||||
vcpkg_configure_cmake(
|
vcpkg_configure_cmake(
|
||||||
SOURCE_PATH ${SOURCE_PATH}
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
PREFER_NINJA
|
PREFER_NINJA
|
||||||
|
OPTIONS
|
||||||
|
-DCMAKE_CXX_STANDARD=${CMAKE_CXX_STANDARD}
|
||||||
)
|
)
|
||||||
|
|
||||||
vcpkg_install_cmake()
|
vcpkg_install_cmake()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user