mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-10-31 09:20:21 +00:00
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(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)
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user