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

Brad King brad.king at kitware.com
Wed Jun 8 12:24:29 EDT 2016


On 06/08/2016 03:33 AM, "Michael Jäntsch" wrote:
> the : is obviously the default for noop which is correct for
> Linux but not for Windows. My CMakeCache has the following entry:
> //noop for ranlib
> CMAKE_RANLIB:INTERNAL=:

I see that here:

  https://cmake.org/gitweb?p=cmake.git;a=blob;f=Modules/CMakeFindBinUtils.cmake;hb=v3.5.2#l55

  if(NOT CMAKE_RANLIB)
    set(CMAKE_RANLIB : CACHE INTERNAL "noop for ranlib")
  endif()

Here is a fix:

 Run ranlib on archives only if the tool is available
 https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=ea598671

Thanks,
-Brad


More information about the cmake-developers mailing list