mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 09:49:00 +08:00
0707a17ecf
* Restore upstream's DLL name * Don't add debug postfix * Decouple wrapper from config * Don't inject Find module stuff into config * Cleanup * [skip actions] Trim lzmad and LibLZMA patching * [skip actions] Fix CMAKE_DISABLE_FIND_PACKAGE_LibLZMA * [skip actions] CI * Update manifests * Update versions * Backfill LibLZMA::LibLZMA to CMake < 3.14 * Update versions * Update versions
74 lines
1.8 KiB
CMake
74 lines
1.8 KiB
CMake
if(CMAKE_BUILD_TYPE STREQUAL "Release")
|
|
set(lib_path_suffix lib)
|
|
else()
|
|
set(lib_path_suffix debug/lib)
|
|
endif()
|
|
|
|
if("bzip2" IN_LIST FEATURES)
|
|
list(APPEND B2_OPTIONS
|
|
-sBZIP2_INCLUDE="${CURRENT_INSTALLED_DIR}/include"
|
|
)
|
|
# Overwride debug library name
|
|
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|
list(APPEND B2_OPTIONS
|
|
-sBZIP2_NAME=bz2d
|
|
)
|
|
endif()
|
|
list(APPEND B2_OPTIONS
|
|
-sBZIP2_LIBRARY_PATH="${CURRENT_INSTALLED_DIR}/${lib_path_suffix}"
|
|
)
|
|
else()
|
|
list(APPEND B2_OPTIONS
|
|
-sNO_BZIP2=1
|
|
)
|
|
endif()
|
|
|
|
if("lzma" IN_LIST FEATURES)
|
|
list(APPEND B2_OPTIONS
|
|
-sLZMA_INCLUDE="${CURRENT_INSTALLED_DIR}/include"
|
|
)
|
|
list(APPEND B2_OPTIONS
|
|
-sLZMA_LIBRARY_PATH="${CURRENT_INSTALLED_DIR}/${lib_path_suffix}"
|
|
)
|
|
else()
|
|
list(APPEND B2_OPTIONS
|
|
-sNO_LZMA=1
|
|
)
|
|
endif()
|
|
|
|
if("zlib" IN_LIST FEATURES)
|
|
list(APPEND B2_OPTIONS
|
|
-sZLIB_INCLUDE="${CURRENT_INSTALLED_DIR}/include"
|
|
)
|
|
# Overwride debug library name
|
|
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|
if(WIN32)
|
|
set(ZLIB_NAME zlibd)
|
|
else()
|
|
set(ZLIB_NAME z)
|
|
endif()
|
|
list(APPEND B2_OPTIONS
|
|
-sZLIB_NAME=${ZLIB_NAME}
|
|
)
|
|
endif()
|
|
list(APPEND B2_OPTIONS
|
|
-sZLIB_LIBRARY_PATH="${CURRENT_INSTALLED_DIR}/${lib_path_suffix}"
|
|
)
|
|
else()
|
|
list(APPEND B2_OPTIONS
|
|
-sNO_ZLIB=1
|
|
)
|
|
endif()
|
|
|
|
if("zstd" IN_LIST FEATURES)
|
|
list(APPEND B2_OPTIONS
|
|
-sZSTD_INCLUDE="${CURRENT_INSTALLED_DIR}/include"
|
|
)
|
|
list(APPEND B2_OPTIONS
|
|
-sZSTD_LIBRARY_PATH="${CURRENT_INSTALLED_DIR}/${lib_path_suffix}"
|
|
)
|
|
else()
|
|
list(APPEND B2_OPTIONS
|
|
-sNO_ZSTD=1
|
|
)
|
|
endif() |