mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-30 20:59:12 +08:00
[openssl-unix] Fix for issue #4001
[vcpkg_configure_cmake] Use the correct path separators for the current platform instead of assuming ;
This commit is contained in:
parent
ac346d9366
commit
d614e3e887
@ -47,7 +47,11 @@ endif()
|
|||||||
|
|
||||||
string(REGEX REPLACE "^ " "" CFLAGS "${CFLAGS}")
|
string(REGEX REPLACE "^ " "" CFLAGS "${CFLAGS}")
|
||||||
|
|
||||||
file(TO_NATIVE_PATH ENV_PATH "${COMPILER_ROOT};$ENV{PATH}")
|
if(CMAKE_HOST_WIN32)
|
||||||
|
file(TO_NATIVE_PATH ENV_PATH "${COMPILER_ROOT};$ENV{PATH}")
|
||||||
|
else()
|
||||||
|
file(TO_NATIVE_PATH ENV_PATH "${COMPILER_ROOT}:$ENV{PATH}")
|
||||||
|
endif()
|
||||||
set(ENV{ANDROID_DEV} "${CMAKE_SYSROOT}/usr")
|
set(ENV{ANDROID_DEV} "${CMAKE_SYSROOT}/usr")
|
||||||
set(ENV{CC} "${CMAKE_C_COMPILER}")
|
set(ENV{CC} "${CMAKE_C_COMPILER}")
|
||||||
|
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
Source: openssl-unix
|
Source: openssl-unix
|
||||||
Version: 1.0.2o
|
Version: 1.0.2o-1
|
||||||
Description: OpenSSL is an open source project that provides a robust, commercial-grade, and full-featured toolkit for the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols. It is also a general-purpose cryptography library.
|
Description: OpenSSL is an open source project that provides a robust, commercial-grade, and full-featured toolkit for the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols. It is also a general-purpose cryptography library.
|
||||||
|
@ -39,6 +39,10 @@ function(vcpkg_acquire_msys PATH_TO_ROOT_OUT)
|
|||||||
set(TOOLPATH ${DOWNLOADS}/tools/msys2)
|
set(TOOLPATH ${DOWNLOADS}/tools/msys2)
|
||||||
cmake_parse_arguments(_am "" "" "PACKAGES" ${ARGN})
|
cmake_parse_arguments(_am "" "" "PACKAGES" ${ARGN})
|
||||||
|
|
||||||
|
if(NOT CMAKE_HOST_WIN32)
|
||||||
|
message(FATAL_ERROR "vcpkg_acquire_msys() can only be used on Windows hosts")
|
||||||
|
endif()
|
||||||
|
|
||||||
# detect host architecture
|
# detect host architecture
|
||||||
if(DEFINED ENV{PROCESSOR_ARCHITEW6432})
|
if(DEFINED ENV{PROCESSOR_ARCHITEW6432})
|
||||||
set(_vam_HOST_ARCHITECTURE $ENV{PROCESSOR_ARCHITEW6432})
|
set(_vam_HOST_ARCHITECTURE $ENV{PROCESSOR_ARCHITEW6432})
|
||||||
|
@ -80,10 +80,15 @@ function(vcpkg_build_cmake)
|
|||||||
|
|
||||||
if(_bc_ADD_BIN_TO_PATH)
|
if(_bc_ADD_BIN_TO_PATH)
|
||||||
set(_BACKUP_ENV_PATH "$ENV{PATH}")
|
set(_BACKUP_ENV_PATH "$ENV{PATH}")
|
||||||
if(BUILDTYPE STREQUAL "debug")
|
if(CMAKE_HOST_WIN32)
|
||||||
set(ENV{PATH} "${CURRENT_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug/bin;$ENV{PATH}")
|
set(_PATHSEP ";")
|
||||||
else()
|
else()
|
||||||
set(ENV{PATH} "${CURRENT_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/bin;$ENV{PATH}")
|
set(_PATHSEP ":")
|
||||||
|
endif()
|
||||||
|
if(BUILDTYPE STREQUAL "debug")
|
||||||
|
set(ENV{PATH} "${CURRENT_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug/bin${_PATHSEP}$ENV{PATH}")
|
||||||
|
else()
|
||||||
|
set(ENV{PATH} "${CURRENT_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/bin${_PATHSEP}$ENV{PATH}")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
execute_process(
|
execute_process(
|
||||||
|
@ -62,6 +62,12 @@ function(vcpkg_configure_cmake)
|
|||||||
set(_csc_HOST_ARCHITECTURE $ENV{PROCESSOR_ARCHITECTURE})
|
set(_csc_HOST_ARCHITECTURE $ENV{PROCESSOR_ARCHITECTURE})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(CMAKE_HOST_WIN32)
|
||||||
|
set(_PATHSEP ";")
|
||||||
|
else()
|
||||||
|
set(_PATHSEP ":")
|
||||||
|
endif()
|
||||||
|
|
||||||
set(NINJA_CAN_BE_USED ON) # Ninja as generator
|
set(NINJA_CAN_BE_USED ON) # Ninja as generator
|
||||||
set(NINJA_HOST ON) # Ninja as parallel configurator
|
set(NINJA_HOST ON) # Ninja as parallel configurator
|
||||||
if(_csc_HOST_ARCHITECTURE STREQUAL "x86")
|
if(_csc_HOST_ARCHITECTURE STREQUAL "x86")
|
||||||
@ -114,7 +120,7 @@ function(vcpkg_configure_cmake)
|
|||||||
if(GENERATOR STREQUAL "Ninja")
|
if(GENERATOR STREQUAL "Ninja")
|
||||||
vcpkg_find_acquire_program(NINJA)
|
vcpkg_find_acquire_program(NINJA)
|
||||||
get_filename_component(NINJA_PATH ${NINJA} DIRECTORY)
|
get_filename_component(NINJA_PATH ${NINJA} DIRECTORY)
|
||||||
set(ENV{PATH} "$ENV{PATH};${NINJA_PATH}")
|
set(ENV{PATH} "$ENV{PATH}${_PATHSEP}${NINJA_PATH}")
|
||||||
list(APPEND _csc_OPTIONS "-DCMAKE_MAKE_PROGRAM=${NINJA}")
|
list(APPEND _csc_OPTIONS "-DCMAKE_MAKE_PROGRAM=${NINJA}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@ -210,7 +216,7 @@ function(vcpkg_configure_cmake)
|
|||||||
|
|
||||||
vcpkg_find_acquire_program(NINJA)
|
vcpkg_find_acquire_program(NINJA)
|
||||||
get_filename_component(NINJA_PATH ${NINJA} DIRECTORY)
|
get_filename_component(NINJA_PATH ${NINJA} DIRECTORY)
|
||||||
set(ENV{PATH} "$ENV{PATH};${NINJA_PATH}")
|
set(ENV{PATH} "$ENV{PATH}${_PATHSEP}${NINJA_PATH}")
|
||||||
|
|
||||||
#parallelize the configure step
|
#parallelize the configure step
|
||||||
set(_contents
|
set(_contents
|
||||||
|
@ -39,7 +39,12 @@ function(vcpkg_configure_meson)
|
|||||||
vcpkg_find_acquire_program(MESON)
|
vcpkg_find_acquire_program(MESON)
|
||||||
vcpkg_find_acquire_program(NINJA)
|
vcpkg_find_acquire_program(NINJA)
|
||||||
get_filename_component(NINJA_PATH ${NINJA} DIRECTORY)
|
get_filename_component(NINJA_PATH ${NINJA} DIRECTORY)
|
||||||
set(ENV{PATH} "$ENV{PATH};${NINJA_PATH}")
|
if(CMAKE_HOST_WIN32)
|
||||||
|
set(_PATHSEP ";")
|
||||||
|
else()
|
||||||
|
set(_PATHSEP ":")
|
||||||
|
endif()
|
||||||
|
set(ENV{PATH} "$ENV{PATH}${_PATHSEP}${NINJA_PATH}")
|
||||||
|
|
||||||
# configure release
|
# configure release
|
||||||
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user