Skip to content

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

@TomClabault

Description

@TomClabault

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions