Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.20260619.0
0.20260623.0
1 change: 1 addition & 0 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"**/*.js",
"**/*.json",
"!**/*.min.css",
"!.buildcache/**",
"!build/**",
"!doc/**",
"!extern/**",
Expand Down
4 changes: 0 additions & 4 deletions cmake/builddocumentation.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ cmake_minimum_required(VERSION @CMAKE_MINIMUM_REQUIRED_VERSION@)

project(@DOCUMENTATION_NAME@)

if(POLICY CMP0135)
cmake_policy(SET CMP0135 NEW)
endif()

include(ExternalProject)

ExternalProject_Add(@DOCUMENTATION_NAME@
Expand Down
4 changes: 0 additions & 4 deletions cmake/buildpackage.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ cmake_minimum_required(VERSION @CMAKE_MINIMUM_REQUIRED_VERSION@)

project(@PACKAGE_NAME@)

if(POLICY CMP0135)
cmake_policy(SET CMP0135 NEW)
endif()

include(ExternalProject)

ExternalProject_Add(@PACKAGE_NAME@ @ARGN@)
41 changes: 23 additions & 18 deletions src/3rdparty/OpenSSL/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,25 @@ if(LIBOPENCOR_PREBUILT_OPENSSL)
else()
# Build our package.

find_package(Perl REQUIRED QUIET)
if(WIN32)
# Look for Strawberry Perl since Git for Windows' Perl is incomplete.

find_program(STRAWBERRY_PERL perl.exe HINTS "C:/Strawberry/perl/bin")

if(STRAWBERRY_PERL)
set(PERL_EXECUTABLE "${STRAWBERRY_PERL}")
else()
find_package(Perl REQUIRED QUIET)
endif()

# Ensure that MSVC's linker takes precedence over any other linker.

get_filename_component(MSVC_BIN_DIR "${CMAKE_C_COMPILER}" DIRECTORY)

set(ENV{PATH} "${MSVC_BIN_DIR};$ENV{PATH}")
else()
find_package(Perl REQUIRED QUIET)
endif()

set(CONFIG_OPTIONS no-shared no-tests no-threads --prefix=${INSTALL_DIR})

Expand Down Expand Up @@ -105,23 +123,6 @@ else()
list(APPEND CONFIG_OPTIONS "-Wa,--noexecstack")
endif()

if(WIN32 AND NOT INTEL_MODE)
#---GRY--- THE BELOW SHOULD BE REMOVED ONCE THE OpenSSL ISSUE ON WoA HAS BEEN FIXED.

# There is currently an issue with building OpenSSL on Windows on ARM, which results in libcurl segfaulting
# whenever we try to use it. A temporary fix is to build OpenSSL without optimisation. We can do this by
# setting the CFLAGS environment variable. By default, the flags passed to the C compiler are
# "/W3 /wd4090 /nologo /O2", so here we set CFLAGS to "/W3 /wd4090 /nologo". See
# https://github.com/openssl/openssl/issues/26239 and
# https://developercommunity.visualstudio.com/t/Openssl-crashes-on-arm64-when-built-with/10896571 for more
# details.

string(REPLACE " " "\\ " ESCAPED_CMAKE_COMMAND ${CMAKE_COMMAND})
string(REPLACE " " "\\ " ESCAPED_CFLAGS "/W3 /wd4090 /nologo")

set(PRE_CONFIGURE_COMMAND ${ESCAPED_CMAKE_COMMAND} -E env CFLAGS=${ESCAPED_CFLAGS})
endif()

build_package(${PACKAGE_NAME}
URL
https://github.com/opencor/${PACKAGE_REPOSITORY}/archive/refs/tags/${RELEASE_TAG}.tar.gz
Expand All @@ -138,6 +139,10 @@ else()
# architecture.

if(NOT WIN32 AND NOT APPLE AND INTEL_MODE)
if(EXISTS "${INSTALL_DIR}/lib")
file(REMOVE_RECURSE "${INSTALL_DIR}/lib")
endif()

file(RENAME "${INSTALL_DIR}/lib64" "${INSTALL_DIR}/lib")
endif()

Expand Down
Loading