mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Skip unused files/checks in libpcre
This commit is contained in:
@@ -140,8 +140,6 @@ include_directories(${PROJECT_SOURCE_DIR}/src)
|
||||
# external packages
|
||||
find_package(BZip2)
|
||||
find_package(ZLIB)
|
||||
find_package(Readline)
|
||||
find_package(Editline)
|
||||
|
||||
# Configuration checks
|
||||
|
||||
@@ -1032,26 +1030,18 @@ if(WIN32 AND (CMAKE_BUILD_TYPE MATCHES Debug))
|
||||
endif()
|
||||
|
||||
if(PCRE2_BUILD_PCRE2_8)
|
||||
configure_file(libpcre2-posix.pc.in libpcre2-posix.pc @ONLY)
|
||||
list(APPEND pkg_config_files "${CMAKE_CURRENT_BINARY_DIR}/libpcre2-posix.pc")
|
||||
configure_file(libpcre2-8.pc.in libpcre2-8.pc @ONLY)
|
||||
list(APPEND pkg_config_files "${CMAKE_CURRENT_BINARY_DIR}/libpcre2-8.pc")
|
||||
set(enable_pcre2_8 "yes")
|
||||
else()
|
||||
set(enable_pcre2_8 "no")
|
||||
endif()
|
||||
|
||||
if(PCRE2_BUILD_PCRE2_16)
|
||||
configure_file(libpcre2-16.pc.in libpcre2-16.pc @ONLY)
|
||||
list(APPEND pkg_config_files "${CMAKE_CURRENT_BINARY_DIR}/libpcre2-16.pc")
|
||||
set(enable_pcre2_16 "yes")
|
||||
else()
|
||||
set(enable_pcre2_16 "no")
|
||||
endif()
|
||||
|
||||
if(PCRE2_BUILD_PCRE2_32)
|
||||
configure_file(libpcre2-32.pc.in libpcre2-32.pc @ONLY)
|
||||
list(APPEND pkg_config_files "${CMAKE_CURRENT_BINARY_DIR}/libpcre2-32.pc")
|
||||
set(enable_pcre2_32 "yes")
|
||||
else()
|
||||
set(enable_pcre2_32 "no")
|
||||
|
||||
Reference in New Issue
Block a user