Commit c487383cf4bdb10edbc36904504719a131072568

Con Kolivas 2012-01-20T09:12:49

Allow CPU mining explicitly enable only if other mining support is built in.

diff --git a/README b/README
index 702cc75..12386bb 100644
--- a/README
+++ b/README
@@ -203,7 +203,7 @@ CPU only options:
         sse2_64         SSE2 64 bit implementation for x86_64 machines
         sse4_64         SSE4.1 64 bit implementation for x86_64 machines (default: sse2_64)
 --cpu-threads|-t <arg> Number of miner CPU threads (default: 4)
---enable-cpu|-C     Enable CPU mining with other mining (default: no CPU mining if suitable devices exist)
+--enable-cpu|-C     Enable CPU mining with other mining (default: no CPU mining if other devices exist)
 
 
 
diff --git a/main.c b/main.c
index 2627bef..97704c4 100644
--- a/main.c
+++ b/main.c
@@ -1574,10 +1574,10 @@ static struct opt_table opt_config_table[] = {
 		     set_float_0_to_99, &opt_show_floatval, &opt_donation,
 		     "Set donation percentage to cgminer author (0.0 - 99.9)"),
 #ifdef HAVE_OPENCL
-#ifdef WANT_CPUMINE
+#if defined(WANT_CPUMINE) && (defined(HAVE_OPENCL) || defined(USE_BITFORCE))
 	OPT_WITHOUT_ARG("--enable-cpu|-C",
 			opt_set_bool, &opt_usecpu,
-			"Enable CPU mining with GPU mining (default: no CPU mining if suitable GPUs exist)"),
+			"Enable CPU mining with other mining (default: no CPU mining if other devices exist)"),
 #endif
 #endif
 	OPT_WITH_ARG("--expiry|-E",