diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2022-09-14 16:52:10 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-09-14 18:55:27 (GMT) |
commit | fc06450ff49db8ebf86977b85206c75de4a40ed3 (patch) | |
tree | 0290d6bc1528c72a1496a7589e3df3820e7cad4b /Tests | |
parent | 31f835410efeea50acd43512eb9e5646a26ea177 (diff) | |
download | CMake-fc06450ff49db8ebf86977b85206c75de4a40ed3.zip CMake-fc06450ff49db8ebf86977b85206c75de4a40ed3.tar.gz CMake-fc06450ff49db8ebf86977b85206c75de4a40ed3.tar.bz2 |
Apple: Fix regression when linking a framework with postfix
Fix a regression caused by commit 40178f3c90 (cmGlobalGenerator: Add
helper to split framework path, 2022-02-10, v3.24.0-rc1~661^2~1).
Fixes: #23961
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/RunCMake/Framework/FrameworkMultiConfigPostfix.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/Framework/FrameworkMultiConfigPostfix.cmake b/Tests/RunCMake/Framework/FrameworkMultiConfigPostfix.cmake index 51e627d..3afda4d 100644 --- a/Tests/RunCMake/Framework/FrameworkMultiConfigPostfix.cmake +++ b/Tests/RunCMake/Framework/FrameworkMultiConfigPostfix.cmake @@ -23,3 +23,8 @@ string(APPEND content "set(target_file_name ${target_name})\n") file(GENERATE OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/FrameworkMultiConfigPostfixInfo.cmake CONTENT "${content}") + + +# Try to link this framework to ensure postfix is correctly handled +add_library(otherlib SHARED foo.c) +target_link_libraries(otherlib PRIVATE ${target_name}) |