comparison Resources/CMake/OrthancStoneConfiguration.cmake @ 1168:f2951ac074bd

allow compiling unit tests with sdl
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 20 Nov 2019 11:08:29 +0100
parents 63539e826355
children ba08f2b0a779 848dcba80d81
comparison
equal deleted inserted replaced
1166:f68da12e852b 1168:f2951ac074bd
51 message(FATAL_ERROR "Cannot enable QT in sandboxed environments") 51 message(FATAL_ERROR "Cannot enable QT in sandboxed environments")
52 endif() 52 endif()
53 53
54 if (ENABLE_SSL) 54 if (ENABLE_SSL)
55 message(FATAL_ERROR "Cannot enable SSL in sandboxed environments") 55 message(FATAL_ERROR "Cannot enable SSL in sandboxed environments")
56 endif()
57 endif()
58
59 if (ENABLE_OPENGL)
60 if (NOT ENABLE_QT AND NOT ENABLE_SDL AND NOT ENABLE_WASM)
61 message(FATAL_ERROR "Cannot enable OpenGL if WebAssembly, SDL and Qt are all disabled")
56 endif() 62 endif()
57 endif() 63 endif()
58 64
59 if (ENABLE_WASM) 65 if (ENABLE_WASM)
60 if (NOT ORTHANC_SANDBOXED) 66 if (NOT ORTHANC_SANDBOXED)