summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeFindBinUtils.cmake
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2013-03-13 22:11:29 (GMT)
committerAlex Neundorf <neundorf@kde.org>2013-03-14 20:47:59 (GMT)
commitb3015862e547319bdc91fab5f28a366640ab50ea (patch)
tree9d6e8f4330de552b9d42b6b42ec6fe00e660a7ea /Modules/CMakeFindBinUtils.cmake
parent12b25df882968b4f5807f2734c98847337d518a9 (diff)
downloadCMake-b3015862e547319bdc91fab5f28a366640ab50ea.zip
CMake-b3015862e547319bdc91fab5f28a366640ab50ea.tar.gz
CMake-b3015862e547319bdc91fab5f28a366640ab50ea.tar.bz2
rename TI_DSP toolchain to TI, since it works also for the ARM compiler
Additionally, look for a special ar and strip Alex
Diffstat (limited to 'Modules/CMakeFindBinUtils.cmake')
-rw-r--r--Modules/CMakeFindBinUtils.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/CMakeFindBinUtils.cmake b/Modules/CMakeFindBinUtils.cmake
index e08c1c6..1b30801 100644
--- a/Modules/CMakeFindBinUtils.cmake
+++ b/Modules/CMakeFindBinUtils.cmake
@@ -41,6 +41,11 @@ if("${CMAKE_CXX_COMPILER_ID}" MATCHES "MSVC"
# in all other cases search for ar, ranlib, etc.
else()
+ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "TI" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "TI")
+ find_program(CMAKE_AR NAMES ar6x HINTS ${_CMAKE_TOOLCHAIN_LOCATION})
+ find_program(CMAKE_STRIP NAMES strip6x HINTS ${_CMAKE_TOOLCHAIN_LOCATION})
+ endif()
+
find_program(CMAKE_AR NAMES ${_CMAKE_TOOLCHAIN_PREFIX}ar HINTS ${_CMAKE_TOOLCHAIN_LOCATION})
find_program(CMAKE_RANLIB NAMES ${_CMAKE_TOOLCHAIN_PREFIX}ranlib HINTS ${_CMAKE_TOOLCHAIN_LOCATION})