File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -142,6 +142,10 @@ if (OPENASSETIOTEST_ENABLE_C)
142
142
add_executable (test .c.core src/test .core.c)
143
143
add_test (c.core test .c.core)
144
144
target_link_libraries (test .c.core PRIVATE OpenAssetIO::openassetio-core-c)
145
+ # Must use C++ linker settings or the C++ standard library might not
146
+ # be linked. This is required since openassetio-core-c depends on
147
+ # openassetio-core, which is a C++ library.
148
+ set_target_properties (test .c.core PROPERTIES LINKER_LANGUAGE CXX)
145
149
target_compile_features (test .c.core PRIVATE c_std_99)
146
150
if (WIN32 AND DEFINED OpenAssetIO_BINARY_DIR )
147
151
set_tests_properties (c.core PROPERTIES ENVIRONMENT "PATH=${OpenAssetIO_BINARY_DIR_NATIVE} " )
Original file line number Diff line number Diff line change @@ -17,6 +17,12 @@ v1.0.0-alpha.x
17
17
* CI testing added to exercise convergent dependency acquisition modes.
18
18
[ #7 ] ( https://github.com/OpenAssetIO/OpenAssetIO-Test-CMake/pull/7 )
19
19
20
+ ### Bug Fixes
21
+
22
+ * Updated build configuration such that C API tests use the C++ linker,
23
+ fixing issues where the C++ standard library is not found on the
24
+ default C linker search paths.
25
+ [ #14 ] ( https://github.com/OpenAssetIO/OpenAssetIO-Test-CMake/pull/14 )
20
26
21
27
v1.0.0-alpha.1
22
28
--------------
You can’t perform that action at this time.
0 commit comments