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

next-release: CMake Error: Error required internal CMake variable not set. Missing variable is: CMAKE_EXE_LINKER_FLAGS_DEBUGGPU #16

Open
TomClabault opened this issue Sep 15, 2024 · 2 comments

Comments

@TomClabault
Copy link

TomClabault commented Sep 15, 2024

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.

@RichardGe
Copy link
Collaborator

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)

@TomClabault
Copy link
Author

Moving it just after set(CMAKE_CXX_STANDARD_REQUIRED ON) yields the same error.

Are you able to reproduce this on your side or is this some setup specific issue on my part that I need to investigate?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants