Skip to content

Commit

Permalink
fixed name mismatch in cmake if else
Browse files Browse the repository at this point in the history
  • Loading branch information
amock committed Dec 5, 2023
1 parent ae9eec7 commit c0da420
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmake/FindOptiX.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c0da420

Please sign in to comment.