Skip to content

Commit

Permalink
graphics/s2: Fix c++17 setting
Browse files Browse the repository at this point in the history
Before:
... -std=c++17  -DNDEBUG -std=c++11 ...

After:
... -DNDEBUG -std=c++17 ...
  • Loading branch information
sunpoet committed Aug 16, 2023
1 parent 928927b commit 7a79a5e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 0 additions & 1 deletion graphics/s2/Makefile
Expand Up @@ -22,7 +22,6 @@ USES= cmake compiler:c++17-lang localbase ssl

CMAKE_ON= BUILD_SHARED_LIBS
CMAKE_OFF= WITH_PYTHON
USE_CXXSTD= c++17
USE_LDCONFIG= yes

PLIST_SUB= PORTVERSION=${PORTVERSION}
Expand Down
11 changes: 11 additions & 0 deletions graphics/s2/files/patch-CMakeLists.txt
@@ -0,0 +1,11 @@
--- CMakeLists.txt.orig 2022-04-01 11:53:29 UTC
+++ CMakeLists.txt
@@ -19,7 +19,7 @@ endif()
# undefined symbol errors since ABSL_HAVE_STD_STRING_VIEW etc will
# end up defined differently. There is probably a better way to achieve
# this than assuming what absl used.
-set(CMAKE_CXX_STANDARD 11)
+set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# No compiler-specific extensions, i.e. -std=c++11, not -std=gnu++11.
set(CMAKE_CXX_EXTENSIONS OFF)

0 comments on commit 7a79a5e

Please sign in to comment.