Add missing target root path, check other export macro

This commit is contained in:
Allen Byrne
2019-07-16 16:12:15 -05:00
parent 741ef0aaef
commit ac8a1f02ab
3 changed files with 31 additions and 22 deletions

View File

@@ -101,6 +101,11 @@ endif ()
include (ProcessorCount)
ProcessorCount (N)
if (NOT N EQUAL 0)
if (MAX_PROC_COUNT)
if (N GREATER MAX_PROC_COUNT)
set (N ${MAX_PROC_COUNT})
endif ()
endif ()
if (NOT WIN32)
set (CTEST_BUILD_FLAGS -j${N})
endif ()