cmake: force project includes before libraries

This commit is contained in:
Yury Popov
2023-02-26 15:40:51 +03:00
parent dd029a7bff
commit 31461c0e44
+2
View File
@@ -38,6 +38,8 @@ add_library(espeak-ng
espeak_api.c
)
target_include_directories(espeak-ng BEFORE PRIVATE $<TARGET_PROPERTY:espeak-include,INTERFACE_INCLUDE_DIRECTORIES>)
if (NOT MSVC)
target_compile_options(espeak-ng PRIVATE
"-fPIC"