# HG changeset patch # User Sebastien Jodogne # Date 1792658191 -7200 # Node ID e3b3fe54b7373ff250da2327a2bf2316a5a902df # Parent 47665da834090164c2d0060d52794de418a9232b targetting microsoft windows diff -r 47665da83409 -r e3b3fe54b737 OrthancFramework/Resources/CMake/OpenSslConfigurationStatic.cmake --- a/OrthancFramework/Resources/CMake/OpenSslConfigurationStatic.cmake Thu Oct 22 10:00:34 2026 +0200 +++ b/OrthancFramework/Resources/CMake/OpenSslConfigurationStatic.cmake Thu Oct 22 10:36:31 2026 +0200 @@ -56,9 +56,24 @@ # Execute the "config" script from the OpenSSL source distribution if ("${CMAKE_SYSTEM_VERSION}" STREQUAL "LinuxStandardBase") - set(Options --with-rand-seed=devrandom) + set(Options no-asm --with-rand-seed=devrandom linux-x86_64) + elseif (MSVC) + # This is Visual Studio + if (CMAKE_SIZEOF_VOID_P EQUAL 4) + set(Options no-asm VC-WIN32) + else() + set(Options no-asm VC-WIN64A) + endif() + elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Windows" AND CMAKE_COMPILER_IS_GNUCXX) + # This is MinGW + if (CMAKE_SIZEOF_VOID_P EQUAL 4) + set(Options no-asm mingw) + else() + set(Options no-asm mingw64) + endif() else() - set(Options) + # Generic system + set(Options no-asm) endif() execute_process(