mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
Remove options var; Create var for setting APR_INSTALL_PRIVATE_H
This commit is contained in:
parent
57cf77dc72
commit
6880f4e6e3
@ -14,15 +14,19 @@ vcpkg_download_distfile(ARCHIVE
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
set(OPTIONS -DINSTALL_PDB=OFF -DMIN_WINDOWS_VER=Windows7 -DAPR_HAVE_IPV6=ON)
|
||||
|
||||
if("private-headers" IN_LIST FEATURES)
|
||||
set(OPTIONS ${OPTIONS} -DAPR_INSTALL_PRIVATE_H=ON)
|
||||
set(INSTALL_PRIVATE_H ON)
|
||||
else()
|
||||
set(INSTALL_PRIVATE_H OFF)
|
||||
endif()
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS ${OPTIONS}
|
||||
OPTIONS
|
||||
-DINSTALL_PDB=OFF
|
||||
-DMIN_WINDOWS_VER=Windows7
|
||||
-DAPR_HAVE_IPV6=ON
|
||||
-DAPR_INSTALL_PRIVATE_H=${INSTALL_PRIVATE_H}
|
||||
# OPTIONS -DUSE_THIS_IN_ALL_BUILDS=1 -DUSE_THIS_TOO=2
|
||||
# OPTIONS_RELEASE -DOPTIMIZE=1
|
||||
# OPTIONS_DEBUG -DDEBUGGABLE=1
|
||||
|
Loading…
x
Reference in New Issue
Block a user