-
Notifications
You must be signed in to change notification settings - Fork 173
Make spdlog and fmt mutually exclusive and support -Werror=missing-braces #419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,13 +67,11 @@ if(KOMPUTE_OPT_ANDROID_BUILD) | |
target_link_libraries(kompute PUBLIC vulkanAndroid | ||
android | ||
kp_logger | ||
kp_shader | ||
fmt::fmt) | ||
kp_shader) | ||
else() | ||
target_link_libraries(kompute PUBLIC Vulkan::Vulkan | ||
kp_logger | ||
kp_shader | ||
fmt::fmt) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this being removed? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I removed this because it is linked as a public dependency in |
||
kp_shader) | ||
endif() | ||
|
||
if(KOMPUTE_OPT_BUILD_PYTHON) | ||
|
@@ -94,7 +92,7 @@ add_subdirectory(shaders) | |
add_subdirectory(include) | ||
|
||
if(KOMPUTE_OPT_INSTALL) | ||
if (KOMPUTE_OPT_USE_BUILT_IN_FMT) | ||
if (NOT KOMPUTE_OPT_USE_SPDLOG AND KOMPUTE_OPT_USE_BUILT_IN_FMT) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the need for the extra guard check? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See my response below. I had to make SPDLOG and FMT mutually exclusive to avoid duplicate symbol errors. |
||
# 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} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would this work for both spdlog and fmt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is separate from the other changes to spdlog and fmt.