diff --git a/CMakeLists.txt b/CMakeLists.txt index 9446bc4..a8a3288 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,16 +3,7 @@ cmake_minimum_required(VERSION 2.6) project( libmfx ) # FIXME Adds support for using system/other install of intel media sdk -find_path ( INTELMEDIASDK_PATH mfx/mfxvideo.h - HINTS "${CMAKE_SOURCE_DIR}" -) - -if (INTELMEDIASDK_PATH_NOTFOUND) - message( FATAL_ERROR "Intel MEDIA SDK include not found" ) -else (INTELMEDIASDK_PATH_NOTFOUND) - message(STATUS "Intel Media SDK is here: ${INTELMEDIASDK_PATH}") -endif (INTELMEDIASDK_PATH_NOTFOUND) - +set(INTELMEDIASDK_PATH "${CMAKE_CURRENT_LIST_DIR}") set(SOURCES src/main.cpp diff --git a/libmfx.pc.cmake b/libmfx.pc.cmake index fabb541..5d248fe 100644 --- a/libmfx.pc.cmake +++ b/libmfx.pc.cmake @@ -11,4 +11,4 @@ Requires.private: Conflicts: Libs: -L${libdir} -lsupc++ ${libdir}/libmfx.lib Libs.private: -Cflags: -I${includedir} -I@INTELMEDIASDK_PATH@ +Cflags: -I${includedir}