Issue
I use these CMake settings:
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_VERBOSE_MAKEFILE on)
id='dv3'>
Solution
set(CMAKE_CXX_EXTENSIONS OFF)
or
cmake -DCMAKE_CXX_EXTENSIONS=OFF <...>
It sets CXX_EXTENSIONS property.
This property specifies whether compiler specific extensions should be used. For some compilers, this results in adding a flag such as
-std=gnu++11
instead of-std=c++11
to the compile line. This property isON
by default. The basic C++ standard level is controlled by theCXX_STANDARD
target property.
Answered By - 273K Answer Checked By - Robin (WPSolving Admin)