shader_builder: fix build issue on windows

shader_builder had no manifest set, leading
to the classic common control version being
loaded which in turn caused an import error
and made the executable fail to initialize.
This commit is contained in:
Ray molenkamp 2022-04-28 16:57:46 -06:00
parent 4b96517e20
commit 9a25a34e42
1 changed files with 7 additions and 0 deletions

View File

@ -549,10 +549,17 @@ if(WITH_GPU_SHADER_BUILDER)
buildinfoobj
)
else()
if(WIN32)
# We can re-use the manifest from tests.exe here since it's
# rather generic and just selects the appropriate common
# controls version.
set(MANIFEST "${CMAKE_BINARY_DIR}/tests.exe.manifest")
endif()
add_executable(shader_builder
intern/gpu_shader_builder.cc
intern/gpu_shader_builder_stubs.cc
${shader_create_info_list_file}
${MANIFEST}
)
target_link_libraries(shader_builder PUBLIC