diff Resources/CMake/OpenSslConfiguration.cmake @ 566:6a3e2ca7a7a0 laaw

the client library compiles with LSB 4.0
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 24 Sep 2013 15:12:51 +0200
parents 6b9d09cc9e9d
children d775a3cb5a06
line wrap: on
line diff
--- a/Resources/CMake/OpenSslConfiguration.cmake	Tue Sep 24 10:43:03 2013 +0200
+++ b/Resources/CMake/OpenSslConfiguration.cmake	Tue Sep 24 15:12:51 2013 +0200
@@ -186,6 +186,12 @@
       ${OPENSSL_SOURCES}
       PROPERTIES COMPILE_DEFINITIONS
       "OPENSSL_SYSNAME_WIN32;SO_WIN32;WIN32_LEAN_AND_MEAN;L_ENDIAN")
+
+  elseif (${CMAKE_SYSTEM_VERSION} STREQUAL "LinuxStandardBase")
+    execute_process(
+      COMMAND patch ui_openssl.c ${CMAKE_SOURCE_DIR}/Resources/Patches/openssl-lsb.diff
+      WORKING_DIRECTORY ${OPENSSL_SOURCES_DIR}/crypto/ui
+      )
   endif()
 
   #add_library(OpenSSL STATIC ${OPENSSL_SOURCES})