From: Matt Schulte Date: Fri, 19 Oct 2018 16:56:19 +0000 (-0700) Subject: Remove explict CMAKE_MODULE_PATH set X-Git-Tag: release-1.5.0~5^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e83f9369a1dc61163106da44a6c36419bff6013f;p=libmatroska Remove explict CMAKE_MODULE_PATH set Currently, CMAKE_MODULE_PATH is expliclty overridden and set to "${CMAKE_CURRENT_SOURCE_DIR}/cmake/". Since that directory does not exist this prevents anyone from writing a FindEbml.cmake file. This works if you are consuming libeml by installing it on your system. This breaks the use case of having libebml built as part of your build. If you have called add_subdirectory(libebml) already, the build should be able to continue. I'm removing the explict set of CMAKE_MODULE_PATH to allow this use case. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index f204a5d..33ad46c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,6 @@ project(matroska VERSION 1.4.9) option(DISABLE_PKGCONFIG "Disable PkgConfig module generation" OFF) option(DISABLE_CMAKE_CONFIG "Disable CMake package config module generation" OFF) -set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/") find_package(Ebml 1.3.5 REQUIRED) include(GNUInstallDirs)