Ah ok. That is interesting. If I set the CMAKE_RANLIB (after my Project command) it gets executed correctly. Interesting is that this is not needed for mingw makefiles. I also do not know how to set the RANLIB properly in my toolchain file.
 
Either way, 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=:
 
Michael
 
 
Gesendet: Dienstag, 07. Juni 2016 um 15:37 Uhr
Von: "Brad King" <[email protected]>
An: [email protected]
Cc: [email protected]
Betreff: Re: [cmake-developers] Bug in CMake: Generated Ninja files do not work on Windows
On 06/07/2016 02:07 AM, [email protected] 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
 
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to