Skip to content

Commit

Permalink
Merge pull request microsoft#225 from amelhassan/cmake-message
Browse files Browse the repository at this point in the history
Change misleading cmake messages
  • Loading branch information
amelhassan authored Oct 30, 2021
2 parents 5886d77 + bb31a7f commit c501b1c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmake/Findk4abt.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -47,25 +47,25 @@ elseif(CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows")
if(EXISTS ${_sdk_dir})
set(_k4abt_lib_path "${_sdk_dir}/${RELATIVE_WIN_K4ABT_LIB_PATH}")
if(NOT EXISTS "${_k4abt_lib_path}")
quiet_message(WARNING "Rejecting SDK located at ${_sdk_dir}: Could not find k4a.lib at ${_k4abt_lib_path}")
quiet_message(WARNING "Rejecting SDK located at ${_sdk_dir}: Could not find k4abt.lib at ${_k4abt_lib_path}")
return()
endif()

set(_k4abt_bin_path "${_sdk_dir}/${RELATIVE_WIN_K4ABT_DLL_PATH}")
if(NOT EXISTS "${_k4abt_bin_path}")
quiet_message(WARNING "Rejecting SDK located at ${_sdk_dir}: Could not find k4arecord.lib at ${_k4abt_bin_path}")
quiet_message(WARNING "Rejecting SDK located at ${_sdk_dir}: Could not find k4abt.dll at ${_k4abt_bin_path}")
return()
endif()

set(_dnn_model_path "${_sdk_dir}/${RELATIVE_WIN_DNN_MODEL_PATH}")
if(NOT EXISTS "${_dnn_model_path}")
quiet_message(WARNING "Rejecting SDK located at ${_sdk_dir}: Could not find k4arecord.lib at ${_dnn_model_path}")
quiet_message(WARNING "Rejecting SDK located at ${_sdk_dir}: Could not find dnn_model.onnx at ${_dnn_model_path}")
return()
endif()

set(_onnx_runtime_bin_path "${_sdk_dir}/${RELATIVE_WIN_ONNX_RUNTIME_DLL_PATH}")
if(NOT EXISTS "${_onnx_runtime_bin_path}")
quiet_message(WARNING "Rejecting SDK located at ${_sdk_dir}: Could not find k4a.dll at ${_onnx_runtime_bin_path}")
quiet_message(WARNING "Rejecting SDK located at ${_sdk_dir}: Could not find onnxruntime.onnx at ${_onnx_runtime_bin_path}")
return()
endif()

Expand Down

0 comments on commit c501b1c

Please sign in to comment.