mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-01 18:55:11 +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)
|
||||
# By default, run tests in parallel on all available cores.
|
||||
include(ProcessorCount)
|
||||
ProcessorCount(NPROC)
|
||||
if(NOT NPROC EQUAL 0)
|
||||
set(EIGEN_CTEST_ARGS "" CACHE STRING "-j"${NPROC})
|
||||
endif()
|
||||
set(EIGEN_CTEST_ARGS "" CACHE STRING "-j0")
|
||||
endif()
|
||||
add_custom_target(check COMMAND "ctest" ${EIGEN_CTEST_ARGS})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user