Skip to content
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

Fix bug in CMake function (#7604) #7611

Closed
wants to merge 1 commit into from
Closed
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: 4 additions & 2 deletions src/CMake/utilities.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2022 Advanced Micro Devices, Inc. All rights reserved.
# Copyright (C) 2022-2023 Advanced Micro Devices, Inc. All rights reserved.

# xrt_add_subdirectory subdir [bindir] [exclude_from_all] [system]
# See CMake: add_subdirectory
Expand All @@ -21,9 +21,11 @@ function(xrt_add_subdirectory subdir)
file(RELATIVE_PATH relpath ${xrtroot} ${path})
if (${relpath} IN_LIST XRT_EXCLUDE_SUB_DIRECTORY)
message("-- xrt_add_subdirectory excludes ${subdir}")
else()
elseif (EXISTS ${path})
message("-- add_subdirectory(${ARGV})")
add_subdirectory(${ARGV})
else ()
message("-- xrt_add_subdirectory ${subdir} does not exist")
endif()
endfunction()

Expand Down