Fix CMake package detection.
authorGhislain Antony Vaillant <ghisvail@gmail.com>
Wed, 16 Nov 2016 10:29:41 +0000 (10:29 +0000)
committerGhislain Antony Vaillant <ghisvail@gmail.com>
Sat, 26 Nov 2016 11:45:27 +0000 (11:45 +0000)
Gbp-Pq: Name Fix-CMake-package-detection.patch

examples/c/CMakeLists.txt

index 778ab5a9d588a6e37e53cd03be4a57bfb0587585..b9a30c446095024bc47fda9ca0bd3b4afd851336 100644 (file)
@@ -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()