Skip to content

Commit 935c10f

Browse files
authored
Merge pull request #516 from gonsolo/noseven
Remove Optix version.
2 parents 8de4354 + e128883 commit 935c10f

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ option (PBRT_DBG_LOGGING "Enable (very verbose!) debug logging" OFF)
2222
option (PBRT_NVTX "Insert NVTX annotations for NVIDIA Profiling and Debugging Tools" OFF)
2323
option (PBRT_NVML "Use NVML for GPU performance measurement" OFF)
2424
option (PBRT_USE_PREGENERATED_RGB_TO_SPECTRUM_TABLES "Use pregenerated rgbspectrum_*.cpp files rather than running rgb2spec_opt to generate them at build time" OFF)
25-
set (PBRT_OPTIX7_PATH $ENV{PBRT_OPTIX7_PATH} CACHE PATH "Path to OptiX 7 SDK")
25+
set (PBRT_OPTIX_PATH $ENV{PBRT_OPTIX_PATH} CACHE PATH "Path to OptiX SDK")
2626
set (PBRT_GPU_SHADER_MODEL "" CACHE STRING "")
2727

2828

@@ -207,8 +207,8 @@ of CUDA installed, please update your PATH.")
207207
message (SEND_ERROR "Unfortunately, pbrt-v4 triggers an internal compiler error in CUDA 11.3.0. Please either use CUDA 11.0-11.2 or 11.3.1 or later.")
208208
endif ()
209209

210-
if ("${PBRT_OPTIX7_PATH}" STREQUAL "")
211-
message (WARNING "Found CUDA but PBRT_OPTIX7_PATH is not set. Disabling GPU compilation.")
210+
if ("${PBRT_OPTIX_PATH}" STREQUAL "")
211+
message (WARNING "Found CUDA but PBRT_OPTIX_PATH is not set. Disabling GPU compilation.")
212212
else ()
213213
enable_language (CUDA)
214214
list (APPEND PBRT_DEFINITIONS "PBRT_BUILD_GPU_RENDERER")
@@ -283,7 +283,7 @@ of CUDA installed, please update your PATH.")
283283
set (PBRT_CUDA_LIB cuda)
284284
# optix
285285
# FIXME
286-
include_directories (${PBRT_OPTIX7_PATH}/include)
286+
include_directories (${PBRT_OPTIX_PATH}/include)
287287

288288
# find CUDA's bin2c executable
289289
get_filename_component (cuda_compiler_bin "${CMAKE_CUDA_COMPILER}" DIRECTORY)
@@ -881,8 +881,8 @@ target_include_directories (pbrt_lib PUBLIC
881881
${GLAD_INCLUDE}
882882
)
883883

884-
if (PBRT_CUDA_ENABLED AND PBRT_OPTIX7_PATH)
885-
target_include_directories (pbrt_lib SYSTEM PUBLIC ${PBRT_OPTIX7_PATH}/include)
884+
if (PBRT_CUDA_ENABLED AND PBRT_OPTIX_PATH)
885+
target_include_directories (pbrt_lib SYSTEM PUBLIC ${PBRT_OPTIX_PATH}/include)
886886
endif ()
887887

888888
target_compile_options (pbrt_lib PUBLIC ${PBRT_CXX_FLAGS})

0 commit comments

Comments
 (0)