From 1bc3e24d22ef01f59256a5f46042c0e5705e67b2 Mon Sep 17 00:00:00 2001 From: Gene Walters Date: Mon, 18 Dec 2023 13:05:21 -0800 Subject: [PATCH] Dont duplicate target Signed-off-by: Gene Walters --- .../AWSGameLiftServerSDK/FindAWSGameLiftServerSDK.cmake.Linux | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package-system/AWSGameLiftServerSDK/FindAWSGameLiftServerSDK.cmake.Linux b/package-system/AWSGameLiftServerSDK/FindAWSGameLiftServerSDK.cmake.Linux index c060209c..00a66dae 100644 --- a/package-system/AWSGameLiftServerSDK/FindAWSGameLiftServerSDK.cmake.Linux +++ b/package-system/AWSGameLiftServerSDK/FindAWSGameLiftServerSDK.cmake.Linux @@ -52,9 +52,8 @@ else() set(CMAKE_THREAD_PREFER_PTHREAD TRUE) set(THREADS_PREFER_PTHREAD_FLAG TRUE) find_package(Threads REQUIRED) - target_link_libraries(${TARGET_WITH_NAMESPACE} PRIVATE Threads::Threads) - target_link_libraries(${TARGET_WITH_NAMESPACE} INTERFACE ${AWSGAMELIFTSERVERSDK_LIBS}) + target_link_libraries(${TARGET_WITH_NAMESPACE} INTERFACE Threads::Threads ${AWSGAMELIFTSERVERSDK_LIBS}) ly_add_dependencies(${TARGET_WITH_NAMESPACE} ${AWSGAMELIFTSERVERSDK_LIBS}) endif()