Skip to content
Snippets Groups Projects
Commit ec951971 authored by Mehdi Sabwat's avatar Mehdi Sabwat Committed by Jean-Baptiste Kempf
Browse files

contrib: set RANLIB for toolchain.cmake

This commit will allow taking into account $RANLIB when we are cross compiling contribs that use cmake.

When cross compiling Openjpeg with emscripten sdk, for example, the build system
won't be able to use emranlib (ranlib targetting the $HOST).

cf: https://emscripten.org/docs/compiling/Building-Projects.html#troubleshooting
parent 7fe7a536
No related branches found
No related tags found
1 merge request!304contrib: set RANLIB for toolchain.cmake
Pipeline #113441 passed with stage
in 1 hour, 2 minutes, and 2 seconds
......@@ -597,6 +597,7 @@ else
endif
endif
echo "set(CMAKE_AR $(AR) CACHE FILEPATH \"Archiver\")" >> $@
echo "set(CMAKE_RANLIB $(RANLIB) CACHE FILEPATH \"Add index to Archive\")" >> $@
ifdef HAVE_CROSS_COMPILE
echo "set(_CMAKE_TOOLCHAIN_PREFIX $(HOST)-)" >> $@
ifdef HAVE_ANDROID
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment