Fixed issue with ADD_LIBRARY() and export header file.

This commit is contained in:
Vincent Richard 2013-05-12 21:05:43 +02:00
parent e088c126ad
commit 53aeff58bf

View File

@ -79,7 +79,6 @@ FILE(
) )
LIST(APPEND VMIME_LIBRARY_INCLUDE_FILES "vmime/config.hpp") LIST(APPEND VMIME_LIBRARY_INCLUDE_FILES "vmime/config.hpp")
LIST(APPEND VMIME_LIBRARY_INCLUDE_FILES "vmime/export.hpp")
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}
@ -111,6 +110,8 @@ IF(VMIME_BUILD_SHARED_LIBRARY)
EXPORT_FILE_NAME ${CMAKE_SOURCE_DIR}/vmime/export.hpp EXPORT_FILE_NAME ${CMAKE_SOURCE_DIR}/vmime/export.hpp
) )
LIST(APPEND VMIME_LIBRARY_INCLUDE_FILES "vmime/export.hpp")
SET_TARGET_PROPERTIES( SET_TARGET_PROPERTIES(
${VMIME_LIBRARY_NAME} ${VMIME_LIBRARY_NAME}
PROPERTIES PROPERTIES