build: allow GSTREAMER_ROOT to be set manually
This commit is contained in:
@@ -16,10 +16,12 @@ if (NOT WIN32)
|
||||
pkg_check_modules(PKG_ORC REQUIRED orc-0.4)
|
||||
endif(NOT WIN32)
|
||||
|
||||
if (CMAKE_SIZEOF_VOID_P MATCHES "8")
|
||||
set(GSTREAMER_ROOT $ENV{GSTREAMER_1_0_ROOT_X86_64})
|
||||
else ()
|
||||
set(GSTREAMER_ROOT $ENV{GSTREAMER_1_0_ROOT_X86})
|
||||
if (NOT GSTREAMER_ROOT)
|
||||
if (CMAKE_SIZEOF_VOID_P MATCHES "8")
|
||||
set(GSTREAMER_ROOT $ENV{GSTREAMER_1_0_ROOT_X86_64})
|
||||
else ()
|
||||
set(GSTREAMER_ROOT $ENV{GSTREAMER_1_0_ROOT_X86})
|
||||
endif ()
|
||||
endif ()
|
||||
|
||||
find_path(ORC_INCLUDE_DIR orc/orc.h
|
||||
|
||||
Reference in New Issue
Block a user