summaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2013-03-27 13:51:41 -0700
committerJosh Blum <josh@joshknows.com>2013-03-29 10:42:30 -0700
commit31b23a19017b7cba7e7563133e0e09dec30fc89e (patch)
tree9ccbb86cb81ce22dcc5393b51228ed36e8625759 /host/lib
parentd745186d00c7c267771296c8dd780b022e994421 (diff)
downloaduhd-31b23a19017b7cba7e7563133e0e09dec30fc89e.tar.gz
uhd-31b23a19017b7cba7e7563133e0e09dec30fc89e.tar.bz2
uhd-31b23a19017b7cba7e7563133e0e09dec30fc89e.zip
orc: added std cmake finder script for orc
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/convert/CMakeLists.txt9
1 files changed, 4 insertions, 5 deletions
diff --git a/host/lib/convert/CMakeLists.txt b/host/lib/convert/CMakeLists.txt
index 0d9d0983f..28defa8bc 100644
--- a/host/lib/convert/CMakeLists.txt
+++ b/host/lib/convert/CMakeLists.txt
@@ -24,12 +24,11 @@ MESSAGE(STATUS "")
########################################################################
# Look for Orc support
########################################################################
-FIND_PACKAGE(PkgConfig)
-IF(PKG_CONFIG_FOUND)
-PKG_CHECK_MODULES(ORC "orc-0.4 > 0.4.11")
-ENDIF(PKG_CONFIG_FOUND)
+FIND_PACKAGE(ORC)
-FIND_PROGRAM(ORCC_EXECUTABLE orcc)
+IF(NOT ORCC_EXECUTABLE)
+ FIND_PROGRAM(ORCC_EXECUTABLE orcc)
+ENDIF()
LIBUHD_REGISTER_COMPONENT("ORC" ENABLE_ORC ON "ENABLE_LIBUHD;ORC_FOUND;ORCC_EXECUTABLE" OFF)