Skip to content

CMake can not determine linker language for target: rtxdi-runtime-shader-tests #26

@Thomaswang0822

Description

@Thomaswang0822

Hi, when I am using CMake-gui to "Generate" after "Configure", I got this error:

CMake Error: CMake can not determine linker language for target: rtxdi-runtime-shader-tests
Generating done (1.1s)

A little bit surprised that other fellows don't have this issue. My guess is the latest version of CMake being more restrictive.
I have CMake 3.30.0 + VS 2022 + Windows 11 + AMD CPU + Nvidia GPU

And I have the solution, credit to ChatGPT. Add this line to the CMake def of rtxdi-runtime-shader-tests.

set_target_properties(${project} PROPERTIES LINKER_LANGUAGE CXX)  

This solves the problem on my machine, I don't have other platforms/configurations to test whether adding this line will break things.
Please check it out.

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