commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 02/02: volk: adds command-line option to en


From: git
Subject: [Commit-gnuradio] [gnuradio] 02/02: volk: adds command-line option to enable/disable use of ORC with -DENABLE_ORC=True/False.
Date: Fri, 4 Jul 2014 00:03:41 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

trondeau pushed a commit to branch master
in repository gnuradio.

commit 085c35a375468179929b690a0d7f037dc6ef23bf
Author: Tom Rondeau <address@hidden>
Date:   Thu Jul 3 18:39:01 2014 -0400

    volk: adds command-line option to enable/disable use of ORC with 
-DENABLE_ORC=True/False.
    
    If ORC is found on the system, the default is to use it. If we have ORC but 
don't want to use it, we can turn it off using this.
---
 volk/CMakeLists.txt | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/volk/CMakeLists.txt b/volk/CMakeLists.txt
index cb548f5..66789e4 100644
--- a/volk/CMakeLists.txt
+++ b/volk/CMakeLists.txt
@@ -79,7 +79,12 @@ if(NOT Boost_FOUND)
     message(FATAL_ERROR "VOLK Requires boost to build")
 endif()
 
-find_package(ORC)
+option(ENABLE_ORC "Enable Orc" True)
+if(ENABLE_ORC)
+  find_package(ORC)
+else(ENABLE_ORC)
+  message(STATUS "Disabling use of ORC")
+endif(ENABLE_ORC)
 
 ########################################################################
 # Setup the package config file



reply via email to

[Prev in Thread] Current Thread [Next in Thread]