When adding HIPRT as a subdirectory with add_subdirectory(), the following error shows up during CMake configuration:
CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
Missing variable is:
CMAKE_EXE_LINKER_FLAGS_DEBUGGPU
The error doesn't appear when configuring a second time.
Also, setting set(CMAKE_EXE_LINKER_FLAGS_DEBUGGPU "") before calling add_subdirectory() solves the issue.
This ultimately isn't an issue at the moment and the project that uses HIPRT as a subdirectory still compiles/links fine but I guess this could be hiding some more issues in the future.