-
Notifications
You must be signed in to change notification settings - Fork 18
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
Fix compiler warnings #2
base: master
Are you sure you want to change the base?
Conversation
@@ -103,7 +103,7 @@ target_link_libraries(espeak-ng PRIVATE espeak-ng-config ucd) | |||
if (NOT MSVC) | |||
target_link_libraries(espeak-ng PRIVATE m) | |||
endif() | |||
target_link_libraries(espeak-ng PUBLIC espeak-include) |
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 line using PUBLIC
causes errors when building for linux aarch64. I have spent half a day to figure it out.
https://github.com/rhasspy/espeak-ng/tree/master/src/include/compat
The above folder contains many header files that share the same name with the standard library headers. It is really bad to also include it in the header search path.
(It is even worse to name them using standard library header filenames.)
@@ -39,6 +39,7 @@ add_library(espeak-ng | |||
) | |||
|
|||
target_include_directories(espeak-ng BEFORE PRIVATE $<TARGET_PROPERTY:espeak-include,INTERFACE_INCLUDE_DIRECTORIES>) | |||
target_link_libraries(espeak-ng PRIVATE "-Wl,-rpath,${ESPEAK_NG_RPATH_ORIGIN}") |
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 commit should fix
rhasspy/piper#286
No description provided.