CMake: enable C++17
Bug: dawn:824 Change-Id: Ia8ac55d406a2b0b9c71f12b523058fa97aabf408 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/75040 Reviewed-by: Austin Eng <enga@chromium.org> Auto-Submit: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Ben Clayton <bclayton@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
parent
b4a4d3fd59
commit
7c8bc94bee
|
@ -204,7 +204,7 @@ if (WIN32)
|
||||||
target_compile_definitions(dawn_internal_config INTERFACE "NOMINMAX" "WIN32_LEAN_AND_MEAN")
|
target_compile_definitions(dawn_internal_config INTERFACE "NOMINMAX" "WIN32_LEAN_AND_MEAN")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD "14")
|
set(CMAKE_CXX_STANDARD "17")
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Run on all subdirectories
|
# Run on all subdirectories
|
||||||
|
|
|
@ -80,9 +80,3 @@ target_link_libraries(dawn_node_binding
|
||||||
dawncpp
|
dawncpp
|
||||||
dawn_node_interop
|
dawn_node_interop
|
||||||
)
|
)
|
||||||
|
|
||||||
# dawn_node targets require C++17
|
|
||||||
set_property(
|
|
||||||
TARGET dawn_node_binding
|
|
||||||
PROPERTY CXX_STANDARD 17
|
|
||||||
)
|
|
||||||
|
|
|
@ -60,9 +60,3 @@ target_link_libraries(dawn_node_interop
|
||||||
PRIVATE
|
PRIVATE
|
||||||
dawncpp
|
dawncpp
|
||||||
)
|
)
|
||||||
|
|
||||||
# dawn_node targets require C++17
|
|
||||||
set_property(
|
|
||||||
TARGET dawn_node_interop
|
|
||||||
PROPERTY CXX_STANDARD 17
|
|
||||||
)
|
|
||||||
|
|
Loading…
Reference in New Issue