Skip to content

Commit a64f75d

Browse files
linesightclaude
andcommitted
Remove -std=gnu++11 from macOS target_compile_options
The top-level CMAKE_CXX_STANDARD 20 adds -std=gnu++20, but the explicit -std=gnu++11 in the Apple branch was overriding it (later flag wins), causing std::same_as and std::decay_t to be missing. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 7dc5078 commit a64f75d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ if(WIN32)
208208
target_link_options(${MODULE_NAME} PRIVATE /ignore:4217)
209209
elseif(APPLE)
210210
target_compile_options(${MODULE_NAME} PRIVATE
211-
-std=gnu++11 -DNDEBUG -O3
211+
-DNDEBUG -O3
212212
-Wno-return-type-c-linkage -Wno-constant-logical-operand
213213
-stdlib=libc++ -fno-strict-aliasing -fno-rtti
214214
-fno-threadsafe-statics -fobjc-call-cxx-cdtors

0 commit comments

Comments
 (0)