diff --git a/cmake/FindOptiX.cmake b/cmake/FindOptiX.cmake index 40e25ac..386ef4a 100644 --- a/cmake/FindOptiX.cmake +++ b/cmake/FindOptiX.cmake @@ -22,16 +22,16 @@ if(DEFINED ENV{OPTIX_INCLUDE_DIR}) # INCLUDE find_path(OptiX_INCLUDE_DIR - NAMES optix.h - PATHS "${OptiX_INCLUDE_DIR_ENV}" - NO_DEFAULT_PATH + NAMES optix.h + PATHS "${OptiX_INCLUDE_DIR_ENV}" + NO_DEFAULT_PATH ) if(NOT OptiX_INCLUDE_DIR) message(WARNING "Environment variable 'OptiX_INCLUDE_DIR' pointing to optix headers folder that is not conform. Make sure it does contain the 'optix.h' file.") endif(NOT OptiX_INCLUDE_DIR) -endif(DEFINED ENV{OptiX_INCLUDE_DIR}) +endif(DEFINED ENV{OPTIX_INCLUDE_DIR}) # INCLUDE find_path(OptiX_INCLUDE_DIR