Commit 3c54c93f authored by Steve Lhomme's avatar Steve Lhomme

contrib: set the AR variable explicitly in CMake

It doesn't inherit it properly in MSys2 (at least) and fails to build.

It shouldn't cause any problems on system where it already works.
parent 5e9d8953
......@@ -519,6 +519,8 @@ ifdef HAVE_IOS
else
echo "set(CMAKE_OSX_SYSROOT $(MACOSX_SDK))" >> $@
endif
else
echo "set(CMAKE_AR $(AR) CACHE FILEPATH "Archiver")" >> $@
endif
ifdef HAVE_CROSS_COMPILE
echo "set(_CMAKE_TOOLCHAIN_PREFIX $(HOST)-)" >> $@
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment