Skip to content

Commit

Permalink
Fix windows build with builtin fmt v10
Browse files Browse the repository at this point in the history
Signed-off-by: ToKiNoBug <[email protected]>
  • Loading branch information
ToKiNoBug committed Oct 30, 2023
1 parent 3b0f647 commit 1927618
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ if(KOMPUTE_OPT_INSTALL)
# We can't export fmt::fmt because it's alias target, so we unwrap the alias and install it.
get_target_property(fmt_aliased_target fmt::fmt ALIASED_TARGET)
install(TARGETS ${fmt_aliased_target}
EXPORT komputeTargets)
EXPORT komputeTargets
#COMPONENT DO_NOT_INSTALL_THIS
EXCLUDE_FROM_ALL)
# Installation of headers changed in fmt from v8 to v10. In v10, cmake will try to find fmt headers in the
# include dir of kompute, which will fail definitely. Add EXCLUDE_FROM_ALL to avoid this bug.
endif ()

if(KOMPUTE_OPT_USE_BUILT_IN_VULKAN_HEADER)
Expand Down

0 comments on commit 1927618

Please sign in to comment.