linux-x86: Avoid CMake issue by not setting CMAKE_AR. It is automatically set.

It is automatically set in CMakeFindBinUtils.cmake using the value
of _CMAKE_TOOLCHAIN_PREFIX extracted from the compiler name within
CMakeDetermineCCompiler.cmake.

The CMake issue is #15448 - https://cmake.org/Bug/view.php?id=15448
This commit is contained in:
Jean-Christophe Fillion-Robin 2016-04-15 18:30:02 -04:00
parent 44dd51cbe8
commit 4ccd459994

View File

@ -12,7 +12,6 @@ set(cross_triple "i686-linux-gnu")
set(CMAKE_C_COMPILER /usr/${cross_triple}/bin/${cross_triple}-gcc)
set(CMAKE_CXX_COMPILER /usr/${cross_triple}/bin/${cross_triple}-g++)
set(CMAKE_ASM_COMPILER ${CMAKE_C_COMPILER})
set(CMAKE_AR /usr/${cross_triple}/bin/${cross_triple}-ar)
# Discard path returned by pkg-config and associated with HINTS in module
# like FindOpenSSL.