We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09441f6 commit e372988Copy full SHA for e372988
src/cmake/modules/FindOptiX.cmake
@@ -55,6 +55,7 @@ endmacro()
55
if (OPTIX_INCLUDE_DIR)
56
# Pull out the API version from optix.h
57
file(STRINGS ${OPTIX_INCLUDE_DIR}/optix.h OPTIX_VERSION_LINE LIMIT_COUNT 1 REGEX "define OPTIX_VERSION")
58
+ message(STATUS "OPTIX_VERSION_LINE = '${OPTIX_VERSION_LINE}'")
59
string(REGEX MATCH "([0-9]+)" OPTIX_VERSION_STRING "${OPTIX_VERSION_LINE}")
60
math(EXPR OPTIX_VERSION_MAJOR "${OPTIX_VERSION_STRING}/10000")
61
math(EXPR OPTIX_VERSION_MINOR "(${OPTIX_VERSION_STRING}%10000)/100")
0 commit comments