Skip to content
This repository was archived by the owner on Oct 6, 2025. It is now read-only.

Fix compiler warnings#2

Open
csukuangfj wants to merge 4 commits into
rhasspy:masterfrom
csukuangfj:fix-compiler-warnings-3
Open

Fix compiler warnings#2
csukuangfj wants to merge 4 commits into
rhasspy:masterfrom
csukuangfj:fix-compiler-warnings-3

Conversation

@csukuangfj
Copy link
Copy Markdown

No description provided.

if (NOT MSVC)
target_link_libraries(espeak-ng PRIVATE m)
endif()
target_link_libraries(espeak-ng PUBLIC espeak-include)
Copy link
Copy Markdown
Author

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.)

)

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}")
Copy link
Copy Markdown
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant