@@ -31,17 +31,9 @@ option(OPENASSETIO_MEDIACREATIONTEST_ENABLE_SUBPROJECT
31
31
option (OPENASSETIOTEST_ENABLE_PYTHON "Test Python bindings" ON )
32
32
option (OPENASSETIOTEST_ENABLE_C "Test C bindings" ON )
33
33
34
- if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND
35
- CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 5.0)
36
- option (OPENASSETIOTEST_GLIBCXX_USE_CXX11_ABI "For gcc, use the new C++11 library ABI" OFF )
37
- endif ()
38
-
39
34
if (CMAKE_TOOLCHAIN_FILE)
40
35
message (STATUS "Using toolchain file = ${CMAKE_TOOLCHAIN_FILE} " )
41
36
endif ()
42
- if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
43
- message (STATUS "New C++11 ABI for GCC = ${OPENASSETIOTEST_GLIBCXX_USE_CXX11_ABI} " )
44
- endif ()
45
37
message (STATUS "Testing OpenAssetIO as a subproject = ${OPENASSETIOTEST_ENABLE_OPENASSETIO_SUBPROJECT} " )
46
38
message (STATUS "Testing OpenAssetIO-MediaCreation as a subproject = "
47
39
"${OPENASSETIOTEST_ENABLE_MEDIACREATION_SUBPROJECT} " )
@@ -100,15 +92,6 @@ add_test(cpp.core test.cpp.core)
100
92
target_link_libraries (test .cpp.core PRIVATE OpenAssetIO::openassetio-core)
101
93
target_compile_features (test .cpp.core PRIVATE cxx_std_17)
102
94
103
- # GCC's C++11 ABI toggle must match OpenAssetIO's settings.
104
- if (DEFINED OPENASSETIOTEST_GLIBCXX_USE_CXX11_ABI)
105
- if (OPENASSETIOTEST_GLIBCXX_USE_CXX11_ABI)
106
- target_compile_definitions (test .cpp.core PRIVATE _GLIBCXX_USE_CXX11_ABI=1)
107
- else ()
108
- target_compile_definitions (test .cpp.core PRIVATE _GLIBCXX_USE_CXX11_ABI=0)
109
- endif ()
110
- endif ()
111
-
112
95
if (WIN32 AND DEFINED OpenAssetIO_BINARY_DIR )
113
96
set_tests_properties (cpp.core PROPERTIES ENVIRONMENT "PATH=${OpenAssetIO_BINARY_DIR_NATIVE} " )
114
97
endif ()
@@ -121,15 +104,6 @@ add_test(cpp.mediacreation test.cpp.mediacreation)
121
104
target_link_libraries (test .cpp.mediacreation PRIVATE OpenAssetIO::openassetio-core OpenAssetIO-MediaCreation::openassetio-mediacreation)
122
105
target_compile_features (test .cpp.mediacreation PRIVATE cxx_std_17)
123
106
124
- # GCC's C++11 ABI toggle must match OpenAssetIO's settings.
125
- if (DEFINED OPENASSETIOTEST_GLIBCXX_USE_CXX11_ABI)
126
- if (OPENASSETIOTEST_GLIBCXX_USE_CXX11_ABI)
127
- target_compile_definitions (test .cpp.mediacreation PRIVATE _GLIBCXX_USE_CXX11_ABI=1)
128
- else ()
129
- target_compile_definitions (test .cpp.mediacreation PRIVATE _GLIBCXX_USE_CXX11_ABI=0)
130
- endif ()
131
- endif ()
132
-
133
107
if (WIN32 AND DEFINED OpenAssetIO_BINARY_DIR )
134
108
set_tests_properties (cpp.mediacreation PROPERTIES ENVIRONMENT "PATH=${OpenAssetIO_BINARY_DIR_NATIVE} " )
135
109
endif ()
@@ -225,9 +199,9 @@ if (OPENASSETIOTEST_ENABLE_PYTHON)
225
199
# Fix library search path on MacOS.
226
200
if (APPLE )
227
201
# The `Python::Python` target's link options are set to e.g
228
- # `@rpath/Python.framework/Versions/3.9 /Python` but all our
202
+ # `@rpath/Python.framework/Versions/3.10 /Python` but all our
229
203
# target's (CMake generated) @rpaths already contain
230
- # `Python.framework/Versions/3.9 `. So add another RPATH with
204
+ # `Python.framework/Versions/3.10 `. So add another RPATH with
231
205
# the framework subdirectories stripped. This then allows our
232
206
# test target to find the Python library.
233
207
set_target_properties (test .python.bridge PROPERTIES BUILD_RPATH ${Python_PREFIX} /../../..)
0 commit comments