I'm trying to build a NaCl extension for Google Chrome on 64-bit Windows 8.1 using CMake. It uses a custom toolchain that comes with the SDK. The same code works on Ubuntu without any problems.
Everything goes well until CMake tries to link with this command: cmake -E cmake_link_script link.txt CMake: Error running link command: %1 is not a valid Win32 application The link.txt is as follows: C:/nacl_sdk/pepper_39/toolchain/win_pnacl/bin/pnacl-ar cr libfoo.a CMakeFiles/foo.dir/Foo.cc.o C:/nacl_sdk/pepper_39/toolchain/win_pnacl/bin/pnacl-ranlib libfoo.a This happens with both NMake and Unix makefile generators (the NaCl SDK contains make.exe for Windows). If I run those exactly same commands manually, they succeed. What could be wrong here? It's as if CMake somehow fails to parse the paths correctly for some reason. BR, Jussi
-- 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
