Skip to content

Commit

Permalink
Explicitly check for supported OSPRay versions (1.3 -> 1.5)
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Dumusc committed May 18, 2018
1 parent 6b3a287 commit 88bca6e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 88bca6e

Please sign in to comment.