[cmake-developers] Bug in CMake: Generated Ninja files do not work on Windows

Brad King brad.king at kitware.com
Tue Jun 7 09:37:05 EDT 2016


On 06/07/2016 02:07 AM, Michael.Jaentsch at gmx.de wrote:
> problem is not the POST_BUILD which is set to "cd ." as you said but the
> CMAKE_CXX_ARCHIVE_FINISH which is before the POST_BUILD
[snip]
>   command = ... D:\gcc\win32\mips-sde-elf\bin\mips-sde-elf-ar.exe qc $TARGET_FILE $LINK_FLAGS $in && : $TARGET_FILE && $POST_BUILD"

That is meant to be the "ranlib" call.  The only way I was able to get
a ":" there was by setting -DCMAKE_RANLIB=: on the command line.  What
is its value?  See CMakeFiles/${CMAKE_VERSION}/CMakeCCompiler.cmake
for a set(CMAKE_RANLIB) call.  Does the toolchain provide a "ranlib"
tool?

-Brad



More information about the cmake-developers mailing list