Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Revert "Fixed check for user-provided toolchain file when given relat…
…ive path"

This reverts commit 1b2dc19.
  • Loading branch information
camblomquist committed Nov 22, 2022
commit bf7bfcd9af9572b1afcd13214fb94a954eedb85b
11 changes: 6 additions & 5 deletions cmake/toolchain/custom.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ if(NOT "@CMAKE_TOOLCHAIN_FILE@" STREQUAL "")
if("@_INTERNAL_DEPTHAI_ORIGINAL_CMAKE_TOOLCHAIN_FILE@" STREQUAL "")
# Variable not set, initial project configuration.
# Path to original toolchain saved in CMAKE_TOOLCHAIN_FILE.

get_filename_component(
_original_toolchain_file "@CMAKE_TOOLCHAIN_FILE@"
ABSOLUTE BASE_DIR @CMAKE_CURRENT_SOURCE_DIR@
)
if(NOT EXISTS "@CMAKE_TOOLCHAIN_FILE@")
message(
FATAL_ERROR "File not found: '@CMAKE_TOOLCHAIN_FILE@'"
)
endif()
set(_original_toolchain_file "@CMAKE_TOOLCHAIN_FILE@")
else()
set(_original_toolchain_file "@_INTERNAL_DEPTHAI_ORIGINAL_CMAKE_TOOLCHAIN_FILE@")
endif()
Expand Down