Skip to content

Commit

Permalink
Add SYSTEM flag to target_include_directories where appropriate
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-fedin authored and john-preston committed Jul 19, 2021
1 parent 0a0097b commit 68c9b78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -87,6 +87,6 @@ if (LINUX AND use_enchant)
find_package(PkgConfig REQUIRED)

pkg_search_module(ENCHANT REQUIRED enchant-2 enchant)
target_include_directories(lib_spellcheck PRIVATE ${ENCHANT_INCLUDE_DIRS})
target_include_directories(lib_spellcheck SYSTEM PRIVATE ${ENCHANT_INCLUDE_DIRS})
target_link_libraries(lib_spellcheck PRIVATE ${CMAKE_DL_LIBS})
endif()

0 comments on commit 68c9b78

Please sign in to comment.