I want set compiler C++ standard to gnu++17 but I cant do that with CMAKE_CXX_STANDARD as it gives me gnu++17 is invalid value.Thus I put it in CMAKE_CXX_FLAGS . But when I compile cmake appends std=gnu++11 to the end of command like this:-
/bin/g++ -Wall -Wpedantic -Wextra -std=gnu++14 -no-pie -fPIC -std=gnu++11 -o /path/to/main.cpp.o -c /blah/blahfeeelk thus std=gnu++11 win . So want to append gnu++17 to the end . How can I do that ? (I have trimmed the original command)