Skip to content

Tentative fix for FindOptiX.cmake #472

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: gz-cmake4
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cmake/FindOptiX.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ endif()
# gz-cmake modification: added "gz_" prefix to macro name
macro(gz_OPTIX_find_api_library name version)
find_library(${name}_LIBRARY
NAMES ${name}.${version} ${name}
NAMES nv${name}.${version} nv${name}
PATHS "${OptiX_INSTALL_DIR}/lib${bit_dest}"
NO_DEFAULT_PATH
)
find_library(${name}_LIBRARY
NAMES ${name}.${version} ${name}
NAMES nv${name}.${version} nv${name}
)
if(WIN32)
find_file(${name}_DLL
Expand All @@ -109,7 +109,7 @@ gz_OPTIX_find_api_library(optix_prime 1)
# Include
find_path(OptiX_INCLUDE
NAMES optix.h
PATHS "${OptiX_INSTALL_DIR}/include"
PATHS "$ENV{OPTIX_INSTALL_DIR}/include"
NO_DEFAULT_PATH
)
find_path(OptiX_INCLUDE
Expand Down
Loading