[Qgis-developer] Processor Count

Gordon McLeod gordon at shieldaig.com
Sun Apr 2 10:25:53 PDT 2017


I was wondering why the CMakeLists.txt file made no use of this CMake feature, doesn’t it work or is there some other reason?

 

Rather than `make -j4` or `make -j8` this might make it automatic.

 

>From Cmake documentation on ProcessorCount valid for AIX, cygwin, FreeBSD, HPUX, IRIX, Linux, Mac OS X, QNX, Sun and Windows:

include(ProcessorCount)

ProcessorCount(N)

if(NOT N EQUAL 0)

  set(CTEST_BUILD_FLAGS -j${N})

  set(ctest_test_args ${ctest_test_args} PARALLEL_LEVEL ${N})

endif()

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20170402/aca4e38c/attachment.html>


More information about the Qgis-developer mailing list