mirror of https://github.com/oxen-io/lokinet
Get processor count properly
This commit is contained in:
parent
e25500f091
commit
83fc7de237
|
@ -12,6 +12,10 @@ file(MAKE_DIRECTORY ${LIBCURL_PREFIX}/include)
|
|||
|
||||
include(ExternalProject)
|
||||
include(ProcessorCount)
|
||||
ProcessorCount(PROCESSOR_COUNT)
|
||||
if(PROCESSOR_COUNT EQUAL 0)
|
||||
set(PROCESSOR_COUNT 1)
|
||||
endif()
|
||||
|
||||
set(libcurl_cc ${CMAKE_C_COMPILER})
|
||||
if(CCACHE_PROGRAM)
|
||||
|
|
|
@ -12,6 +12,10 @@ file(MAKE_DIRECTORY ${LIBSODIUM_PREFIX}/include)
|
|||
|
||||
include(ExternalProject)
|
||||
include(ProcessorCount)
|
||||
ProcessorCount(PROCESSOR_COUNT)
|
||||
if(PROCESSOR_COUNT EQUAL 0)
|
||||
set(PROCESSOR_COUNT 1)
|
||||
endif()
|
||||
|
||||
set(sodium_cc ${CMAKE_C_COMPILER})
|
||||
if(CCACHE_PROGRAM)
|
||||
|
|
Loading…
Reference in New Issue