DiligentGraphics / DiligentCore

A modern cross-platform low-level graphics API
http://diligentgraphics.com/diligent-engine/
Apache License 2.0
615 stars 133 forks source link

CMake: improve windows SDK folder detection #467

Open TheMostDiligent opened 6 months ago

TheMostDiligent commented 6 months ago

This will make the commands work outside of VS environment.

The path can be obtained this way:

get_filename_component(CMAKE_DEVKIT_LOCATION ${CMAKE_RC_COMPILER} DIRECTORY)

TheMostDiligent commented 3 months ago

CMAKE_RC_COMPILER is only set to rc, however CMAKE_AR is set to the full path.