From: Ghislain Antony Vaillant Date: Wed, 16 Nov 2016 10:29:41 +0000 (+0000) Subject: Fix CMake package detection. X-Git-Tag: archive/raspbian/1.3.3-3+rpi1~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=03a5b50dfd4a9b991bfebee8055a8d973bc33bce;p=ismrmrd.git Fix CMake package detection. Gbp-Pq: Name Fix-CMake-package-detection.patch --- diff --git a/examples/c/CMakeLists.txt b/examples/c/CMakeLists.txt index 778ab5a..b9a30c4 100644 --- a/examples/c/CMakeLists.txt +++ b/examples/c/CMakeLists.txt @@ -3,13 +3,7 @@ project(ISMRMRD-C-EXAMPLE) # if building this example as a standalone project if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) - if(NOT DEFINED ENV{ISMRMRD_HOME}) - message(FATAL_ERROR "ISMRMRD_HOME environment variable must be defined") - endif() - - list(APPEND CMAKE_MODULE_PATH "$ENV{ISMRMRD_HOME}/share/ismrmrd/cmake") - - find_package(Ismrmrd REQUIRED) + find_package(ISMRMRD REQUIRED) # otherwise, building it as part of ISMRMRD itself else()