From 3ae83c9cf9f2133bbdca2441792f1bf2bb99ec1a Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Tue, 14 May 2013 19:26:11 +0200 Subject: [PATCH] Changed the way the path to export header file is specified. --- CMakeLists.txt | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f889e229..773c1210 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -107,7 +107,14 @@ IF(VMIME_BUILD_SHARED_LIBRARY) ${VMIME_LIBRARY_NAME} BASE_NAME VMIME STATIC_DEFINE VMIME_STATIC - EXPORT_FILE_NAME ${CMAKE_SOURCE_DIR}/vmime/export-shared.hpp + EXPORT_FILE_NAME export-shared.hpp + ) + + FILE( + COPY + ${CMAKE_CURRENT_BINARY_DIR}/export-shared.hpp + DESTINATION + ${PROJECT_SOURCE_DIR}/vmime ) LIST(APPEND VMIME_LIBRARY_GENERATED_INCLUDE_FILES "vmime/export-shared.hpp") @@ -145,7 +152,14 @@ IF(VMIME_BUILD_STATIC_LIBRARY) ${VMIME_LIBRARY_NAME}-static BASE_NAME VMIME STATIC_DEFINE VMIME_STATIC - EXPORT_FILE_NAME ${CMAKE_SOURCE_DIR}/vmime/export-static.hpp + EXPORT_FILE_NAME export-static.hpp + ) + + FILE( + COPY + ${CMAKE_CURRENT_BINARY_DIR}/export-static.hpp + DESTINATION + ${PROJECT_SOURCE_DIR}/vmime ) LIST(APPEND VMIME_LIBRARY_GENERATED_INCLUDE_FILES "vmime/export-static.hpp")