Closed jievince closed 2 years ago
The cache of build is cleared, and I specify
-DCMAKE_CXX_STANDARD=17
, but s2 still use c++11 to compile. But if I change the lineset(CMAKE_CXX_STANDARD 11)
toset(CMAKE_CXX_STANDARD 17)
in CmakeLists.txt, it works.
The cmake flag will make affect when changing set(CMAKE_CXX_STANDARD 11)
to option(CMAKE_CXX_STANDARD 11)
Could you open a PR to fix it?
The cache of build is cleared, and I specify
-DCMAKE_CXX_STANDARD=17
, but s2 still use c++11 to compile. But if I change the lineset(CMAKE_CXX_STANDARD 11)
toset(CMAKE_CXX_STANDARD 17)
in CmakeLists.txt, it works.