Skip to content

Commit 0ab5bf1

Browse files
authored
Merge pull request #1476 from xsacha/patch-1
Fix CMake cross-compiling
2 parents 2216717 + f81815e commit 0ab5bf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/system.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ if (NOT CMAKE_CROSSCOMPILING)
9797
endif()
9898

9999
if (NOT DEFINED NUM_THREADS)
100-
if (NOT NUM_CORES EQUAL 0)
100+
if (DEFINED NUM_CORES AND NOT NUM_CORES EQUAL 0)
101101
# HT?
102102
set(NUM_THREADS ${NUM_CORES})
103103
else ()

0 commit comments

Comments
 (0)