File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,11 @@ else()
102
102
add_compile_options (-Wall -Wextra -pedantic -Werror )
103
103
endif ()
104
104
105
+ # Workaround name mangling compatibility in GCC.
106
+ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
107
+ add_compile_options (-fabi-compat-version=19 )
108
+ endif ()
109
+
105
110
function (add_bigobj_flag target )
106
111
if (MSVC )
107
112
# MSVC requires the /bigobj flag if the number of sections gets too big.
Original file line number Diff line number Diff line change @@ -7,9 +7,6 @@ cmake_minimum_required(VERSION 3.28)
7
7
add_subdirectory (schema )
8
8
add_library (todaygraphql STATIC TodayMock.cpp )
9
9
target_compile_features (todaygraphql PUBLIC cxx_std_20 )
10
- if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
11
- target_compile_options (todaygraphql PUBLIC "-fabi-version=0" )
12
- endif ()
13
10
target_link_libraries (todaygraphql PUBLIC today_schema )
14
11
target_sources (todaygraphql PUBLIC FILE_SET CXX_MODULES
15
12
BASE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}
@@ -19,9 +16,6 @@ target_sources(todaygraphql PUBLIC FILE_SET CXX_MODULES
19
16
add_subdirectory (nointrospection )
20
17
add_library (todaygraphql_nointrospection STATIC TodayMock.cpp )
21
18
target_compile_features (todaygraphql_nointrospection PUBLIC cxx_std_20 )
22
- if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
23
- target_compile_options (todaygraphql_nointrospection PUBLIC "-fabi-version=0" )
24
- endif ()
25
19
target_link_libraries (todaygraphql_nointrospection PUBLIC today_nointrospection_schema )
26
20
target_sources (todaygraphql_nointrospection PUBLIC FILE_SET CXX_MODULES
27
21
BASE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}
You can’t perform that action at this time.
0 commit comments