Merge pull request #1476 from xsacha/patch-1

Fix CMake cross-compiling
This commit is contained in:
Martin Kroeker
2018-02-28 18:47:57 +01:00
committed by GitHub

View File

@@ -97,7 +97,7 @@ if (NOT CMAKE_CROSSCOMPILING)
endif()
if (NOT DEFINED NUM_THREADS)
if (NOT NUM_CORES EQUAL 0)
if (DEFINED NUM_CORES AND NOT NUM_CORES EQUAL 0)
# HT?
set(NUM_THREADS ${NUM_CORES})
else ()