Mercurial > hg > orthanc
changeset 2027:8c9426d0a3e2
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 20 Jun 2016 13:50:26 +0200 |
parents | d46746607ae0 |
children | df9c1738d92e b4da986c82bb |
files | Resources/CMake/LibP11Configuration.cmake |
diffstat | 1 files changed, 7 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/Resources/CMake/LibP11Configuration.cmake Mon Jun 20 13:48:36 2016 +0200 +++ b/Resources/CMake/LibP11Configuration.cmake Mon Jun 20 13:50:26 2016 +0200 @@ -11,11 +11,7 @@ DownloadPackage(${LIBP11_MD5} ${LIBP11_URL} "${LIBP11_SOURCES_DIR}") - file(COPY - ${LIBP11_SOURCES_DIR}/src/engine.h - ${LIBP11_SOURCES_DIR}/src/libp11.h - DESTINATION ${AUTOGENERATED_DIR}/libp11) - + # Apply the patches execute_process( COMMAND ${PATCH_EXECUTABLE} -p0 -N -i ${CMAKE_CURRENT_SOURCE_DIR}/Resources/Patches/libp11-0.4.0.patch WORKING_DIRECTORY ${CMAKE_BINARY_DIR} @@ -26,6 +22,12 @@ message(FATAL_ERROR "Error while patching libp11") endif() + # This command MUST be after applying the patch + file(COPY + ${LIBP11_SOURCES_DIR}/src/engine.h + ${LIBP11_SOURCES_DIR}/src/libp11.h + DESTINATION ${AUTOGENERATED_DIR}/libp11) + set(LIBP11_SOURCES #${LIBP11_SOURCES_DIR}/src/eng_front.c ${LIBP11_SOURCES_DIR}/src/eng_back.c