You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
I see that set(CMAKE_EXE_LINKER_FLAGS_DEBUGGPU "") is already in the cmake.
would it help to move it earlier in the file ?
for example just after set(CMAKE_CXX_STANDARD_REQUIRED ON)
When adding HIPRT as a subdirectory with
add_subdirectory()
, the following error shows up during CMake configuration:The error doesn't appear when configuring a second time.
Also, setting
set(CMAKE_EXE_LINKER_FLAGS_DEBUGGPU "")
before callingadd_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.
The text was updated successfully, but these errors were encountered: