[CMake] Assign large C++ source to separate ninja pool

2016-04-23 Thread Konstantin Tokarev
Hello, In Ninja documentation on pools feature there is an example of separate heavy_object_pool [1]. Is it possible to use this feature with cmake? Use case is to avoid parallel compilation of N large sources, while compilation of 1 large and N-1 small sources is OK. [1] https://ninja-build.o

[CMake] CMAKE_POSITION_INDEPENDENT_CODE Version

2016-04-23 Thread Rob McDonald
CMAKE_POSITION_INDEPENDENT_CODE first appears in the documentation for 2.8.9 while CMAKE_POSITION_INDEPENDENT_FLAGS appears in the docs for 2.8.8 -- with the same description. Was this just a documentation typo, or did the name of this variable change from 2.8.8 to 2.8.9? Only the _FLAGS version

[CMake] Version compatibility?

2016-04-23 Thread Rob McDonald
Is there a continuation of the CMake version -- feature mapping table? https://cmake.org/Wiki/CMake_Version_Compatibility_Matrix I found this to be quite useful, but need something that continues into 3.X. Rob -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ

[CMake] How to transfer CMake variable and include other makefile in one makefile which generated by CMake

2016-04-23 Thread Chaos Zhang
Hi all, I faced this problem when i converting an existing Makefile to CMake. I have try my best to search this problem in google and stack overflow but finally failed for my poor English.In the existing makefile, the content like as below: var=test_var include(test.mk) What i want to do