summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeOBJCXXInformation.cmake
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@gmail.com>2020-01-07 12:40:33 (GMT)
committerBrad King <brad.king@kitware.com>2020-01-09 18:52:37 (GMT)
commit1a9f6bad987d9b08330e59451955a8df9db21c3b (patch)
tree594407b9d7375bfa71f4c2d19d59e034d52e31db /Modules/CMakeOBJCXXInformation.cmake
parentd4d11b17078a6690aca122d7f7ec62475cedccfc (diff)
downloadCMake-1a9f6bad987d9b08330e59451955a8df9db21c3b.zip
CMake-1a9f6bad987d9b08330e59451955a8df9db21c3b.tar.gz
CMake-1a9f6bad987d9b08330e59451955a8df9db21c3b.tar.bz2
ObjC: Add _COMPILE_LAUNCHER support
Fixes: #20178
Diffstat (limited to 'Modules/CMakeOBJCXXInformation.cmake')
-rw-r--r--Modules/CMakeOBJCXXInformation.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/CMakeOBJCXXInformation.cmake b/Modules/CMakeOBJCXXInformation.cmake
index 71ac26a..cb349d7 100644
--- a/Modules/CMakeOBJCXXInformation.cmake
+++ b/Modules/CMakeOBJCXXInformation.cmake
@@ -203,6 +203,11 @@ if(CMAKE_OBJCXX_STANDARD_LIBRARIES_INIT)
mark_as_advanced(CMAKE_OBJCXX_STANDARD_LIBRARIES)
endif()
+if(NOT CMAKE_OBJCXX_COMPILER_LAUNCHER AND DEFINED ENV{CMAKE_OBJCXX_COMPILER_LAUNCHER})
+ set(CMAKE_OBJCXX_COMPILER_LAUNCHER "$ENV{CMAKE_OBJCXX_COMPILER_LAUNCHER}"
+ CACHE STRING "Compiler launcher for OBJCXX.")
+endif()
+
include(CMakeCommonLanguageInclude)
# now define the following rules: