projects
/
ismrmrd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d93c47c
)
Fix CMake package detection.
author
Ghislain Antony Vaillant
<ghisvail@gmail.com>
Wed, 16 Nov 2016 10:29:41 +0000
(10:29 +0000)
committer
Peter Michael Green
<plugwash@raspbian.org>
Thu, 8 Dec 2016 19:10:10 +0000
(19:10 +0000)
Gbp-Pq: Name Fix-CMake-package-detection.patch
examples/c/CMakeLists.txt
patch
|
blob
|
history
diff --git
a/examples/c/CMakeLists.txt
b/examples/c/CMakeLists.txt
index 778ab5a9d588a6e37e53cd03be4a57bfb0587585..b9a30c446095024bc47fda9ca0bd3b4afd851336 100644
(file)
--- 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()