mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 15:14:44 +00:00
cmake: Disable -Wunused-macros for bundled PCRE2
This is a noisy warning when building PCRE2
This commit is contained in:
parent
f0d4fd85b1
commit
d6d0723e0d
1 changed files with 6 additions and 0 deletions
|
@ -39,5 +39,11 @@ else()
|
|||
add_subdirectory(pcre2 EXCLUDE_FROM_ALL)
|
||||
set(PCRE2_INCLUDE_DIR ${CMAKE_BINARY_DIR}/pcre2)
|
||||
set(PCRE2_LIB pcre2-${PCRE2_WIDTH})
|
||||
|
||||
# Disable -Wunused-macros inside PCRE2, as it is noisy.
|
||||
get_target_property(PCRE2_COMPILE_OPTIONS ${PCRE2_LIB} COMPILE_OPTIONS)
|
||||
list(REMOVE_ITEM PCRE2_COMPILE_OPTIONS "-Wunused-macros")
|
||||
set_property(TARGET ${PCRE2_LIB} PROPERTY COMPILE_OPTIONS ${PCRE2_COMPILE_OPTIONS})
|
||||
|
||||
endif(FISH_USE_SYSTEM_PCRE2)
|
||||
include_directories(${PCRE2_INCLUDE_DIR})
|
||||
|
|
Loading…
Reference in a new issue