Browse Source

cmake: force project includes before libraries

master
Yury Popov 2 years ago
parent
commit
31461c0e44
No account linked to committer's email address
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/libespeak-ng/CMakeLists.txt

+ 2
- 0
src/libespeak-ng/CMakeLists.txt 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"

Loading…
Cancel
Save