Do not include generated header files in ADD_LIBRARY().
This commit is contained in:
parent
53aeff58bf
commit
1a53602555
@ -78,7 +78,8 @@ FILE(
|
|||||||
vmime/*
|
vmime/*
|
||||||
)
|
)
|
||||||
|
|
||||||
LIST(APPEND VMIME_LIBRARY_INCLUDE_FILES "vmime/config.hpp")
|
LIST(APPEND VMIME_LIBRARY_GENERATED_INCLUDE_FILES "vmime/config.hpp")
|
||||||
|
LIST(APPEND VMIME_LIBRARY_GENERATED_INCLUDE_FILES "vmime/export.hpp")
|
||||||
|
|
||||||
INCLUDE_DIRECTORIES(
|
INCLUDE_DIRECTORIES(
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
@ -110,8 +111,6 @@ 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
|
||||||
@ -219,6 +218,7 @@ ENDIF()
|
|||||||
|
|
||||||
# Installation of header files
|
# Installation of header files
|
||||||
INSTALL_HEADERS_WITH_DIRECTORY(VMIME_LIBRARY_INCLUDE_FILES headers)
|
INSTALL_HEADERS_WITH_DIRECTORY(VMIME_LIBRARY_INCLUDE_FILES headers)
|
||||||
|
INSTALL_HEADERS_WITH_DIRECTORY(VMIME_LIBRARY_GENERATED_INCLUDE_FILES headers)
|
||||||
|
|
||||||
#INSTALL(
|
#INSTALL(
|
||||||
# FILES ${VMIME_LIBRARY_INCLUDE_FILES}
|
# FILES ${VMIME_LIBRARY_INCLUDE_FILES}
|
||||||
|
Loading…
Reference in New Issue
Block a user