Skip to content

Commit

Permalink
Fix incorrect adding .h in bgfx_compile_shaders (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
zby-c authored Sep 10, 2024
1 parent 4ceffda commit 9418487
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmake/bgfxToolUtils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,10 @@ if(TARGET bgfx::shaderc)
set(MKDIR_COMMANDS "")
foreach(PROFILE ${PROFILES})
_bgfx_get_profile_ext(${PROFILE} PROFILE_EXT)
set(OUTPUT ${ARGS_OUTPUT_DIR}/${PROFILE_EXT}/${SHADER_FILE_BASENAME}.bin$<$<BOOL:ARGS_AS_HEADERS>:.h>)
if(ARGS_AS_HEADERS)
set(HEADER_PREFIX .h)
endif()
set(OUTPUT ${ARGS_OUTPUT_DIR}/${PROFILE_EXT}/${SHADER_FILE_BASENAME}.bin${HEADER_PREFIX})
set(PLATFORM_I ${PLATFORM})
if(PROFILE STREQUAL "spirv")
set(PLATFORM_I LINUX)
Expand Down

0 comments on commit 9418487

Please sign in to comment.