Skip to content

Commit 6e8c59a

Browse files
only require C++17 for swift-stdlib-tool
1 parent f995005 commit 6e8c59a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/swift-stdlib-tool/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ add_swift_host_tool(swift-stdlib-tool
22
swift-stdlib-tool.cpp
33
SWIFT_COMPONENT compiler)
44

5-
set(CMAKE_CXX_STANDARD 17)
6-
set(CMAKE_CXX_STANDARD_REQUIRED True)
5+
set_target_properties(swift-stdlib-tool PROPERTIES
6+
CXX_STANDARD 17
7+
CXX_STANDARD_REQUIRED ON)
78

89
target_link_libraries(swift-stdlib-tool PRIVATE)

0 commit comments

Comments
 (0)