From ae108418ae45aff7740605bb7add3843b050d226 Mon Sep 17 00:00:00 2001 From: Bobby D Reynolds Date: Tue, 18 May 2021 08:57:02 -0700 Subject: Launchers: Support setting linker launchers Fixes: #18316 --- Modules/CMakeOBJCInformation.cmake | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Modules/CMakeOBJCInformation.cmake') diff --git a/Modules/CMakeOBJCInformation.cmake b/Modules/CMakeOBJCInformation.cmake index d530191753..ac67d013cc 100644 --- a/Modules/CMakeOBJCInformation.cmake +++ b/Modules/CMakeOBJCInformation.cmake @@ -115,6 +115,11 @@ if(NOT CMAKE_OBJC_COMPILER_LAUNCHER AND DEFINED ENV{CMAKE_OBJC_COMPILER_LAUNCHER CACHE STRING "Compiler launcher for OBJC.") endif() +if(NOT CMAKE_OBJC_LINKER_LAUNCHER AND DEFINED ENV{CMAKE_OBJC_LINKER_LAUNCHER}) + set(CMAKE_OBJC_LINKER_LAUNCHER "$ENV{CMAKE_OBJC_LINKER_LAUNCHER}" + CACHE STRING "Linker launcher for OBJC.") +endif() + include(CMakeCommonLanguageInclude) # now define the following rule variables -- cgit v1.2.1