diff options
| author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-09-23 21:38:05 -0300 |
|---|---|---|
| committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-09-23 22:27:17 -0300 |
| commit | 67af0323f0599585825895144bcfcaea0e10bf46 (patch) | |
| tree | 6da315a3c9007eaf7f98cc4a03d702beb1c76536 /src/video_core/host_shaders/StringShaderHeader.cmake | |
| parent | 10e8acc4513b0f286fd485aa366cd8b7900c63ca (diff) | |
video_core: Fix instances where msbuild always regenerated host shaders
When HEADER_GENERATOR was included in the DEPENDS section of custom
commands, msbuild assumed this was always modified. Changing this file
is not common so we can remove it from there.
Diffstat (limited to 'src/video_core/host_shaders/StringShaderHeader.cmake')
| -rw-r--r-- | src/video_core/host_shaders/StringShaderHeader.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/host_shaders/StringShaderHeader.cmake b/src/video_core/host_shaders/StringShaderHeader.cmake index 368bce0ed..c0fc49768 100644 --- a/src/video_core/host_shaders/StringShaderHeader.cmake +++ b/src/video_core/host_shaders/StringShaderHeader.cmake @@ -8,4 +8,6 @@ string(TOUPPER ${CONTENTS_NAME} CONTENTS_NAME) file(READ ${SOURCE_FILE} CONTENTS) +get_filename_component(OUTPUT_DIR ${HEADER_FILE} DIRECTORY) +make_directory(${OUTPUT_DIR}) configure_file(${INPUT_FILE} ${HEADER_FILE} @ONLY) |
