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
|
# external packages
|
||||||
find_package(BZip2)
|
find_package(BZip2)
|
||||||
find_package(ZLIB)
|
find_package(ZLIB)
|
||||||
find_package(Readline)
|
|
||||||
find_package(Editline)
|
|
||||||
|
|
||||||
# Configuration checks
|
# Configuration checks
|
||||||
|
|
||||||
@@ -1032,26 +1030,18 @@ if(WIN32 AND (CMAKE_BUILD_TYPE MATCHES Debug))
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(PCRE2_BUILD_PCRE2_8)
|
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")
|
set(enable_pcre2_8 "yes")
|
||||||
else()
|
else()
|
||||||
set(enable_pcre2_8 "no")
|
set(enable_pcre2_8 "no")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(PCRE2_BUILD_PCRE2_16)
|
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")
|
set(enable_pcre2_16 "yes")
|
||||||
else()
|
else()
|
||||||
set(enable_pcre2_16 "no")
|
set(enable_pcre2_16 "no")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(PCRE2_BUILD_PCRE2_32)
|
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")
|
set(enable_pcre2_32 "yes")
|
||||||
else()
|
else()
|
||||||
set(enable_pcre2_32 "no")
|
set(enable_pcre2_32 "no")
|
||||||
|
|||||||
Reference in New Issue
Block a user