projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f27ba5
)
cmake check if VTK version is lower than 5, and give fatal error if it is
author
Ozan Tonkal
<ozantonkal@gmail.com>
Sun, 15 Sep 2013 09:24:20 +0000
(11:24 +0200)
committer
Ozan Tonkal
<ozantonkal@gmail.com>
Sun, 15 Sep 2013 09:24:20 +0000
(11:24 +0200)
modules/viz/CMakeLists.txt
patch
|
blob
|
history
diff --git
a/modules/viz/CMakeLists.txt
b/modules/viz/CMakeLists.txt
index
fbc4167
..
74c9fd1
100644
(file)
--- a/
modules/viz/CMakeLists.txt
+++ b/
modules/viz/CMakeLists.txt
@@
-12,9
+12,9
@@
macro(find_qvtk)
endmacro()
macro(find_vtk)
- find_package(VTK
5.10.0
)
- if(
NOT VTK_FOUND
)
-
find_package(VTK 6.0.0 REQUIRED
)
+ find_package(VTK)
+ if(
${VTK_MAJOR_VERSION} LESS 5
)
+
MESSAGE(FATAL_ERROR "VTK 5 or more required!"
)
endif()
if(VTK_FOUND)
if (BUILD_SHARED_LIBS OR (NOT BUILD_SHARED_LIBS AND NOT VTK_BUILD_SHARED_LIBS))