Skip to content

Commit f2ea716

Browse files
authored
Fix a non-portable target reference in CMake helper function (#829)
This fixes an oversight in a helper function in the project’s CMake rules: `_swift_testing_install_target()` has a hard-coded reference to the target named ”Testing” but it should instead refer to whatever target was passed in via the `module` argument to the function. Discovered while working on #825. ### Checklist: - [x] Code and documentation should follow the style of the [Style Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md). - [x] If public symbols are renamed or modified, DocC references should be updated.
1 parent 0f1cd55 commit f2ea716

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/modules/SwiftModuleInstallation.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function(get_swift_testing_install_lib_dir type result_var_name)
4343
endfunction()
4444

4545
function(_swift_testing_install_target module)
46-
target_compile_options(Testing PRIVATE "-no-toolchain-stdlib-rpath")
46+
target_compile_options(${module} PRIVATE "-no-toolchain-stdlib-rpath")
4747

4848
if(APPLE)
4949
set_target_properties(${module} PROPERTIES

0 commit comments

Comments
 (0)