CMakeFindBinUtils: issue with GNU/Clang-like toolchain on a Visual Studio platform
in Modules/CMakeFindBinUtils.cmake, it is impossible to detect automatically the ar
, ranlib
, ecc programs on a GNU/Clang-like toolchain on a Visual Studio platform just using a toolchain (i.e. if I understand it correctly, something similar to the "Tegra-Android" platform.
# if it's the MS C/CXX compiler, search for link
if("x${CMAKE_C_SIMULATE_ID}" STREQUAL "xMSVC"
OR "x${CMAKE_CXX_SIMULATE_ID}" STREQUAL "xMSVC"
OR "x${CMAKE_Fortran_SIMULATE_ID}" STREQUAL "xMSVC"
OR "x${CMAKE_C_COMPILER_ID}" STREQUAL "xMSVC"
OR "x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xMSVC"
OR "x${CMAKE_CUDA_SIMULATE_ID}" STREQUAL "xMSVC"
OR (CMAKE_GENERATOR MATCHES "Visual Studio"
AND NOT CMAKE_VS_PLATFORM_NAME STREQUAL "Tegra-Android"))
There is a way to force entering this if
(using the _SIMULATE_ID
, variables) but there is no way to skip this check and to jump to the search.