DiligentCore icon indicating copy to clipboard operation
DiligentCore copied to clipboard

CMake: improve windows SDK folder detection

Open TheMostDiligent opened this issue 2 years ago • 1 comments

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 avatar Feb 29 '24 16:02 TheMostDiligent

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

TheMostDiligent avatar Jun 13 '24 01:06 TheMostDiligent