RTXDI
RTXDI copied to clipboard
CMake can not determine linker language for target: rtxdi-runtime-shader-tests
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.