Hardcoded NUM_CORES to get system.cmake working.

This commit is contained in:
Hank Anderson
2015-01-27 11:37:39 -06:00
parent 0f6bec0a32
commit f4d1e7a265
2 changed files with 43 additions and 3 deletions
+3 -3
View File
@@ -88,8 +88,8 @@ if (NOT DEFINED NUM_THREADS)
set(NUM_THREADS ${NUM_CORES})
endif ()
if (NUM_THREADS EQUALS 1)
# TODO: was "override USE_THREAD = 0", do we need override here? -hpa
if (${NUM_THREADS} EQUAL 1)
# TODO: was "override USE_THREAD = 0", do we need "override" here? -hpa
set(USE_THREAD 0)
endif ()
@@ -101,7 +101,7 @@ if (DEFINED USE_THREAD)
endif ()
else ()
# N.B. this is NUM_THREAD in Makefile.system which is probably a bug -hpa
if (${NUM_THREADS} EQUALS 1)
if (${NUM_THREADS} EQUAL 1)
unset(SMP)
else ()
set(SMP 1)