From: <ai...@us...> - 2014-01-21 09:08:36
|
Revision: 12945 http://sourceforge.net/p/plplot/code/12945 Author: airwin Date: 2014-01-21 09:08:28 +0000 (Tue, 21 Jan 2014) Log Message: ----------- Implement NUMBER_PARALLEL_JOBS option with a default of 4 rather than hard coding 4. Modified Paths: -------------- trunk/cmake/epa_build/CMakeLists.txt Modified: trunk/cmake/epa_build/CMakeLists.txt =================================================================== --- trunk/cmake/epa_build/CMakeLists.txt 2014-01-16 05:44:27 UTC (rev 12944) +++ trunk/cmake/epa_build/CMakeLists.txt 2014-01-21 09:08:28 UTC (rev 12945) @@ -316,12 +316,15 @@ # The parallel versions are for software packages that # do not have race conditions for parallel builds or tests. -set(EPA_PARALLEL_BUILD_COMMAND "${EPA_BUILD_COMMAND}" -j4) -set(EPA_PARALLEL_CTEST_COMMAND "${EPA_CTEST_COMMAND}" -j4) + +set(NUMBER_PARALLEL_JOBS 4 CACHE STRING "Number of parallel jobs") + +set(EPA_PARALLEL_BUILD_COMMAND "${EPA_BUILD_COMMAND}" -j${NUMBER_PARALLEL_JOBS}) +set(EPA_PARALLEL_CTEST_COMMAND "${EPA_CTEST_COMMAND}" -j${NUMBER_PARALLEL_JOBS}) # For autotools based builds. option(AUTOTOOLS_PARALLEL_BUILD "Build autotools projects using parallel make unless a specific project is expressely configured otherwise" ON) if(AUTOTOOLS_PARALLEL_BUILD) - set(EPA_PARALLEL_MAKE_COMMAND "${EPA_MAKE_COMMAND}" -j4) + set(EPA_PARALLEL_MAKE_COMMAND "${EPA_MAKE_COMMAND}" -j${NUMBER_PARALLEL_JOBS}) else(AUTOTOOLS_PARALLEL_BUILD) set(EPA_PARALLEL_MAKE_COMMAND "${EPA_MAKE_COMMAND}") endif(AUTOTOOLS_PARALLEL_BUILD) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |