Get processor count properly

This commit is contained in:
Jason Rhinelander 2020-06-10 14:53:57 -03:00
parent e25500f091
commit 83fc7de237
2 changed files with 8 additions and 0 deletions

View File

@ -12,6 +12,10 @@ file(MAKE_DIRECTORY ${LIBCURL_PREFIX}/include)
include(ExternalProject) include(ExternalProject)
include(ProcessorCount) include(ProcessorCount)
ProcessorCount(PROCESSOR_COUNT)
if(PROCESSOR_COUNT EQUAL 0)
set(PROCESSOR_COUNT 1)
endif()
set(libcurl_cc ${CMAKE_C_COMPILER}) set(libcurl_cc ${CMAKE_C_COMPILER})
if(CCACHE_PROGRAM) if(CCACHE_PROGRAM)

View File

@ -12,6 +12,10 @@ file(MAKE_DIRECTORY ${LIBSODIUM_PREFIX}/include)
include(ExternalProject) include(ExternalProject)
include(ProcessorCount) include(ProcessorCount)
ProcessorCount(PROCESSOR_COUNT)
if(PROCESSOR_COUNT EQUAL 0)
set(PROCESSOR_COUNT 1)
endif()
set(sodium_cc ${CMAKE_C_COMPILER}) set(sodium_cc ${CMAKE_C_COMPILER})
if(CCACHE_PROGRAM) if(CCACHE_PROGRAM)