ExternalProject: AR tool not found
When cross-compiling for Emscripten, the build step of an ExternalProject fails because AR tool path is unknown to it. I'm getting the error:
Linking CXX static library libX.a
CMAKE_AR-NOTFOUND cr libX.a source.cpp.o
The workaround is to add additional cmake argument to ExternlaProject_Add: -DCMAKE_AR=${CMAKE_AR}
.
The same issue might be for the RANLIB tool as Emscripten overwrites it as well.