[CMake] Why is Ninja generator disabled by default?
Claus Klein
claus.klein at arcormail.de
Tue May 22 18:55:17 EDT 2012
But it works for each variant:
claus-kleins-macbook-pro:My Tests clausklein$ mkdir ninja
claus-kleins-macbook-pro:My Tests clausklein$ cd ninja/
claus-kleins-macbook-pro:ninja clausklein$ pwd
/Users/clausklein/Downloads/cmake/My Tests/ninja
claus-kleins-macbook-pro:ninja clausklein$ "/usr/local/CMake 2.8-8.app/
Contents/bin/cmake" -G Ninja -DMAKE_SUPPORTS_SPACES=0 ../../Tests/
CompileCommandOutput/
-- The CXX compiler identification is GNU 4.7.0
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag -
yes
-- Check for working CXX compiler using: Ninja
-- Check for working CXX compiler using: Ninja -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/clausklein/Downloads/cmake/
My Tests/ninja
claus-kleins-macbook-pro:ninja clausklein$ ninja -d explain
ninja explain: output CMakeFiles/test2.dir/relative.cxx.o doesn't exist
ninja explain: CMakeFiles/test2.dir/relative.cxx.o is dirty
ninja explain: output CMakeFiles/test1.dir/file_with_spaces.cxx.o
doesn't exist
ninja explain: CMakeFiles/test1.dir/file_with_spaces.cxx.o is dirty
ninja explain: output CMakeFiles/CompileCommandOutput.dir/
compile_command_output.cxx.o doesn't exist
ninja explain: CMakeFiles/CompileCommandOutput.dir/
compile_command_output.cxx.o is dirty
ninja explain: libtest1.a is dirty
ninja explain: libtest2.dylib is dirty
ninja explain: CompileCommandOutput is dirty
ninja explain: libtest1.a is dirty
ninja explain: libtest2.dylib is dirty
[6/6] Linking CXX executable CompileCommandOutput
claus-kleins-macbook-pro:ninja clausklein$ ls -lrta
total 72
drwxr-xr-x 4 clausklein staff 136 May 23 00:49 ..
-rw-r--r-- 1 clausklein staff 2989 May 23 00:50 rules.ninja
-rw-r--r-- 1 clausklein staff 1492 May 23 00:50 cmake_install.cmake
-rw-r--r-- 1 clausklein staff 9248 May 23 00:50 build.ninja
-rw-r--r-- 1 clausklein staff 10666 May 23 00:50 CMakeCache.txt
-rwxr-xr-x 1 clausklein staff 12432 May 23 00:50 libtest2.dylib
-rw-r--r-- 1 clausklein staff 672 May 23 00:50 libtest1.a
-rwxr-xr-x 1 clausklein staff 12652 May 23 00:50 CompileCommandOutput
drwxr-xr-x 13 clausklein staff 442 May 23 00:50 CMakeFiles
-rw-r--r-- 1 clausklein staff 1934 May 23 00:50 .ninja_log
drwxr-xr-x 11 clausklein staff 374 May 23 00:50 .
claus-kleins-macbook-pro:ninja clausklein$
claus-kleins-macbook-pro:ninja clausklein$ ninja clean
[1/1] Cleaning all built files...
Cleaning... 9 files.
claus-kleins-macbook-pro:ninja clausklein$ ninja rebuild_cache
[1/1] Running CMake to regenerate build system...
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/clausklein/Downloads/cmake/
My Tests/ninja
claus-kleins-macbook-pro:ninja clausklein$ ninja
[6/6] Linking CXX executable CompileCommandOutput
claus-kleins-macbook-pro:ninja clausklein$
space in source; space in working dir, ...
Claus
On 23.05.2012, at 00:42, Richard Wackerbarth wrote:
> Yes, you changed the test configuration and that configuration will
> work. However, for other generators, you do not need to add the -
> DMAKE_SUPPORTS_SPACES
>
> Richard
>
> On May 22, 2012, at 5:18 PM, Claus Klein <claus.klein at arcormail.de>
> wrote:
>> claus-kleins-macbook-pro:CompileCommandOutput clausklein$ "/usr/
>> local/CMake 2.8-8.app/Contents/bin/cmake" -G Ninja -
>> DMAKE_SUPPORTS_SPACES=1
More information about the CMake
mailing list