diff --git a/CMakeLists.txt b/CMakeLists.txt index 19040cc93bba4e045b2020c10a1f53ef6cdc6350..28d3a66fdc8b14bddb8378c31f41d456e4f19206 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -146,6 +146,11 @@ if(iMSTK_USE_PHYSX) ) endif() +option(iMSTK_USE_OpenHaptics "Use OpenHaptic Support." OFF) +if(NOT WIN32 AND iMSTK_USE_OpenHaptics) + message(FATAL_ERROR "Setting iMSTK_USE_OpenHaptics to ON is only supported on Windows") +endif() + #----------------------------------------------------------------------------- # CTest/Dashboards #----------------------------------------------------------------------------- @@ -180,11 +185,6 @@ if(${PROJECT_NAME}_SUPERBUILD) message(WARN "Uncrustify requires a python interpreter, please install python and rerun configure") endif() endif() - - option(${PROJECT_NAME}_USE_OpenHaptics "Use OpenHaptic Support." OFF) - if(NOT WIN32 AND ${PROJECT_NAME}_USE_OpenHaptics) - message(FATAL_ERROR "Setting ${PROJECT_NAME}_USE_OpenHaptics to ON is only supported on Windows") - endif() imstk_define_dependency(Assimp) imstk_define_dependency(Eigen3)