Fix CMake includes.

This commit is contained in:
Eugene Kliuchnikov 2016-08-23 15:35:54 +02:00
parent 3dcc3c02d0
commit 532921b8c8

View File

@ -129,6 +129,9 @@ add_library(brotli_enc STATIC
enc/static_dict.c
enc/utf8_util.c)
# Older CMake versions does not understand INCLUDE_DIRECTORIES property.
include_directories(${BROTLI_INCLUDE_DIRS})
foreach(lib brotli_common brotli_dec brotli_enc)
target_link_libraries(${lib} ${LIBM_LIBRARY})
set_property(TARGET ${lib} APPEND PROPERTY INCLUDE_DIRECTORIES ${BROTLI_INCLUDE_DIRS})