mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-02 03:05:10 +08:00
Fix cmake warning and default to j0.
This commit is contained in:
parent
e0c99a8dd6
commit
9cc9209b9b
@ -12,11 +12,7 @@ add_custom_target(buildtests)
|
|||||||
|
|
||||||
if (NOT EIGEN_CTEST_ARGS)
|
if (NOT EIGEN_CTEST_ARGS)
|
||||||
# By default, run tests in parallel on all available cores.
|
# By default, run tests in parallel on all available cores.
|
||||||
include(ProcessorCount)
|
set(EIGEN_CTEST_ARGS "" CACHE STRING "-j0")
|
||||||
ProcessorCount(NPROC)
|
|
||||||
if(NOT NPROC EQUAL 0)
|
|
||||||
set(EIGEN_CTEST_ARGS "" CACHE STRING "-j"${NPROC})
|
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
add_custom_target(check COMMAND "ctest" ${EIGEN_CTEST_ARGS})
|
add_custom_target(check COMMAND "ctest" ${EIGEN_CTEST_ARGS})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user