Skip to content

Commit 80a4da1

Browse files
authored
cmake: extend OptiX search paths to include common system install locations (#166)
1 parent 3f2105c commit 80a4da1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmake/FindOptiX.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ if(NOT OptiX_INSTALL_DIR)
3838
endif()
3939
endif()
4040

41-
find_path(OptiX_ROOT_DIR NAMES include/optix.h PATHS ${OptiX_INSTALL_DIR} ${OPTIX_SDK_DIR} REQUIRED)
41+
find_path(OptiX_ROOT_DIR NAMES include/optix.h PATHS ${OptiX_INSTALL_DIR} ${OPTIX_SDK_DIR} /opt/optix /opt/optix-dev /usr/local/optix /usr/local/optix-dev REQUIRED)
4242
file(READ "${OptiX_ROOT_DIR}/include/optix.h" header)
4343
string(REGEX REPLACE "^.*OPTIX_VERSION ([0-9]+)([0-9][0-9])([0-9][0-9])[^0-9].*$" "\\1.\\2.\\3" OPTIX_VERSION ${header})
4444
string(REGEX REPLACE "^.*OPTIX_VERSION ([0-9]+)[^0-9].*$" "\\1" OptiX_VERSION ${header})

0 commit comments

Comments
 (0)