Skip to content

Commit

Permalink
try manually specifying c++20
Browse files Browse the repository at this point in the history
  • Loading branch information
jadebenn committed Jan 22, 2024
1 parent a6cba14 commit 63a57f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ set(RECASTNAVIGATION_EXAMPLES OFF CACHE BOOL "" FORCE)
# Disabled no-register
# Disabled unknown pragmas because Linux doesn't understand Windows pragmas.
if(UNIX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2 -Wuninitialized -fPIC -fdata-sections -ffunction-sections")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2 -Wuninitialized -fPIC -fdata-sections -ffunction-sections -std=c++20")
set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--gc-sections")
add_compile_definitions(_GLIBCXX_USE_CXX11_ABI=0 _GLIBCXX_USE_CXX17_ABI=0)

Expand Down

0 comments on commit 63a57f7

Please sign in to comment.