From 88bca6ed4579cb3954c0f4728ec4eb0b6f360ddf Mon Sep 17 00:00:00 2001 From: Raphael Dumusc Date: Fri, 18 May 2018 14:11:54 +0200 Subject: [PATCH] Explicitly check for supported OSPRay versions (1.3 -> 1.5) --- CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index aff921a18..0589f6ddf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -96,11 +96,15 @@ common_find_package(BBPTestData) common_find_package(Lunchbox) # OSPRay rendering engine -common_find_package(ospray SYSTEM) -if(OSPRAY_FOUND) +common_find_package(ospray 1.3 SYSTEM) +set(_ospray_unsupported_version 1.6) +if(OSPRAY_FOUND AND OSPRAY_VERSION VERSION_LESS _ospray_unsupported_version) option(BRAYNS_OSPRAY_ENABLED "Activate OSPRay rendering engine" ON) else() unset(BRAYNS_OSPRAY_ENABLED) + if(OSPRAY_FOUND) + message(WARNING "OSPRay version >= ${_ospray_unsupported_version} not supported") + endif() endif() # Image processing