comparison Resources/CMake/OpenSslConfiguration.cmake @ 29:042ac60f5bf9

simplified build of curl
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 29 Aug 2012 15:27:13 +0200
parents ef264c1e9ee5
children e9e3c9e6a555
comparison
equal deleted inserted replaced
28:ef264c1e9ee5 29:042ac60f5bf9
1 if (${STATIC_BUILD}) 1 if (${STATIC_BUILD})
2 SET(OPENSSL_SOURCES_DIR ${CMAKE_BINARY_DIR}/openssl-1.0.1c) 2 SET(OPENSSL_SOURCES_DIR ${CMAKE_BINARY_DIR}/openssl-1.0.1c)
3 DownloadPackage("http://www.openssl.org/source/openssl-1.0.1c.tar.gz" "${OPENSSL_SOURCES_DIR}" "" "") 3 DownloadPackage("http://www.openssl.org/source/openssl-1.0.1c.tar.gz" "${OPENSSL_SOURCES_DIR}" "" "")
4 4
5 if (NOT EXISTS "${OPENSSL_SOURCES_DIR}/include/PATCHED") 5 if (NOT EXISTS "${OPENSSL_SOURCES_DIR}/include/PATCHED")
6 message("Patching the symbolic links")
7 if ("${CMAKE_HOST_SYSTEM_NAME}" STREQUAL "Windows") 6 if ("${CMAKE_HOST_SYSTEM_NAME}" STREQUAL "Windows")
7 message("Patching the symbolic links")
8 # Patch the symbolic links by copying the files 8 # Patch the symbolic links by copying the files
9 file(GLOB headers "${OPENSSL_SOURCES_DIR}/include/openssl/*.h") 9 file(GLOB headers "${OPENSSL_SOURCES_DIR}/include/openssl/*.h")
10 foreach(header ${headers}) 10 foreach(header ${headers})
11 message(${header}) 11 message(${header})
12 file(READ "${header}" symbolicLink) 12 file(READ "${header}" symbolicLink)
137 ${OPENSSL_SOURCES_DIR}/crypto/x509v3/v3conf.c 137 ${OPENSSL_SOURCES_DIR}/crypto/x509v3/v3conf.c
138 ${OPENSSL_SOURCES_DIR}/crypto/des/des.c 138 ${OPENSSL_SOURCES_DIR}/crypto/des/des.c
139 ${OPENSSL_SOURCES_DIR}/ssl/ssl_task.c 139 ${OPENSSL_SOURCES_DIR}/ssl/ssl_task.c
140 ) 140 )
141 141
142 if (${MSVC}) 142 #if (${MSVC})
143 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
143 set_source_files_properties( 144 set_source_files_properties(
144 ${OPENSSL_SOURCES} 145 ${OPENSSL_SOURCES}
145 PROPERTIES COMPILE_DEFINITIONS 146 PROPERTIES COMPILE_DEFINITIONS
146 "OPENSSL_SYSNAME_WIN32;SO_WIN32;WIN32_LEAN_AND_MEAN;L_ENDIAN") 147 "OPENSSL_SYSNAME_WIN32;SO_WIN32;WIN32_LEAN_AND_MEAN;L_ENDIAN")
147 endif() 148 endif()