We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc26cdc commit e0ddd7dCopy full SHA for e0ddd7d
cmake/system.cmake
@@ -94,16 +94,17 @@ if (NOT CMAKE_CROSSCOMPILING)
94
ProcessorCount(NUM_CORES)
95
endif()
96
97
+endif()
98
+
99
+if (NOT DEFINED NUM_THREADS)
100
if (NOT NUM_CORES EQUAL 0)
101
# HT?
102
set(NUM_THREADS ${NUM_CORES})
103
+ else ()
104
+ set(NUM_THREADS 0)
105
endif ()
106
107
-if (NOT DEFINED NUM_THREADS)
- set(NUM_THREADS 0)
-endif()
-
108
if (${NUM_THREADS} LESS 2)
109
set(USE_THREAD 0)
110
elseif(NOT DEFINED USE_THREAD)
0 commit comments