summaryrefslogtreecommitdiff
path: root/Modules/CMakeDetermineCompilerId.cmake
diff options
context:
space:
mode:
authorGregor Jasny <gjasny@googlemail.com>2017-09-17 18:35:29 +0200
committerGregor Jasny <gjasny@googlemail.com>2017-09-19 20:44:31 +0200
commit45e30d128cc96edce96c499a1d6a201d4442d05f (patch)
tree8c071b42f6c28e72e4e62cbab77f1d677ed03915 /Modules/CMakeDetermineCompilerId.cmake
parent0be0e02cfba547733d710118ebbd74e61f1fce42 (diff)
downloadcmake-45e30d128cc96edce96c499a1d6a201d4442d05f.tar.gz
Xcode: Add team to compiler-id project
Closes #16839
Diffstat (limited to 'Modules/CMakeDetermineCompilerId.cmake')
-rw-r--r--Modules/CMakeDetermineCompilerId.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/CMakeDetermineCompilerId.cmake b/Modules/CMakeDetermineCompilerId.cmake
index 9988a10e21..cddc966ea6 100644
--- a/Modules/CMakeDetermineCompilerId.cmake
+++ b/Modules/CMakeDetermineCompilerId.cmake
@@ -328,6 +328,12 @@ Id flags: ${testflags} ${CMAKE_${lang}_COMPILER_ID_FLAGS_ALWAYS}
else()
set(id_sdkroot "")
endif()
+ if(CMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM)
+ set(id_development_team
+ "DEVELOPMENT_TEAM = \"${CMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM}\";")
+ else()
+ set(id_development_team "")
+ endif()
configure_file(${CMAKE_ROOT}/Modules/CompilerId/Xcode-3.pbxproj.in
${id_dir}/CompilerId${lang}.xcodeproj/project.pbxproj @ONLY)
unset(_ENV_MACOSX_DEPLOYMENT_TARGET)