Groups
Groups
Sign in
Groups
Groups
ngrest
Conversations
About
Send feedback
Help
How to set c++ standard to c++17
44 views
Skip to first unread message
Alan Man Lok Ng
unread,
Jul 29, 2020, 12:26:10 AM
7/29/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ngrest
Hello, I want to use the filesystem library in c++17. Thank you
loe...@gmail.com
unread,
Jul 29, 2020, 2:45:47 AM
7/29/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ngrest
I believe it's sufficient to add something like this to the top of CMakeLists.txt :
include(CheckCXXCompilerFlag)
check_cxx_compiler_flag(-std=gnu++17 HAS_CXX17)
if (HAS_CXX17)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++17")
endif()
Reply all
Reply to author
Forward
0 new messages