From 53aeff58bf3f9a09aa0f7bff42f7ae5fddb6ecbf Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Sun, 12 May 2013 21:05:43 +0200 Subject: [PATCH] Fixed issue with ADD_LIBRARY() and export header file. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4c8d291f..e8f47332 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -79,7 +79,6 @@ FILE( ) LIST(APPEND VMIME_LIBRARY_INCLUDE_FILES "vmime/config.hpp") -LIST(APPEND VMIME_LIBRARY_INCLUDE_FILES "vmime/export.hpp") INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR} @@ -111,6 +110,8 @@ IF(VMIME_BUILD_SHARED_LIBRARY) EXPORT_FILE_NAME ${CMAKE_SOURCE_DIR}/vmime/export.hpp ) + LIST(APPEND VMIME_LIBRARY_INCLUDE_FILES "vmime/export.hpp") + SET_TARGET_PROPERTIES( ${VMIME_LIBRARY_NAME} PROPERTIES