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

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

Open
Thomaswang0822 opened this issue Jul 18, 2024 · 0 comments

Comments

@Thomaswang0822
Copy link

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.

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

1 participant