File tree 1 file changed +15
-1
lines changed
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -43,9 +43,23 @@ include_directories(
43
43
${catkin_INCLUDE_DIRS}
44
44
)
45
45
46
- find_package (rmagine REQUIRED)
46
+
47
+
48
+ # only print warning for Rmagine version greater than RMAGINE_MAX_VERSION
49
+ set (RMAGINE_MAX_VERSION "2.1.0" )
50
+ find_package (rmagine 2.0.0... REQUIRED)
51
+
52
+
53
+ if (rmagine_VERSION GREATER RMAGINE_MAX_VERSION)
54
+ message (WARNING "Found Rmagine version: ${rmagine_VERSION} > Latest tested Rmagine version: ${RMAGINE_MAX_VERSION} . Compile at your own risk." )
55
+ else ()
56
+ message (STATUS "Rmagine Version: ${rmagine_VERSION_MAJOR} .${rmagine_VERSION_MINOR} .${rmagine_VERSION_PATCH} " )
57
+ endif ()
58
+
47
59
include_directories (${rmagine_INCLUDE_DIRS} )
48
60
61
+
62
+
49
63
if (rmagine_embree_FOUND)
50
64
option (DISABLE_EMBREE "Disable Rmagine Embree backend Compilation" FALSE )
51
65
endif ()
You can’t perform that action at this time.
0 commit comments