Fixed #142: fixed install location of generated headers.
This commit is contained in:
parent
79edc1b2f4
commit
b133ce8cfb
@ -246,8 +246,8 @@ IF(VMIME_BUILD_STATIC_LIBRARY)
|
||||
ENDIF()
|
||||
|
||||
# Installation of header files
|
||||
INSTALL_HEADERS_WITH_DIRECTORY(VMIME_LIBRARY_INCLUDE_FILES headers src/)
|
||||
INSTALL_HEADERS_WITH_DIRECTORY(VMIME_LIBRARY_GENERATED_INCLUDE_FILES headers src/)
|
||||
INSTALL_HEADERS_WITH_DIRECTORY(VMIME_LIBRARY_INCLUDE_FILES headers "${CMAKE_SOURCE_DIR}/src/")
|
||||
INSTALL_HEADERS_WITH_DIRECTORY(VMIME_LIBRARY_GENERATED_INCLUDE_FILES headers "${CMAKE_BINARY_DIR}/src")
|
||||
|
||||
#INSTALL(
|
||||
# FILES ${VMIME_LIBRARY_INCLUDE_FILES}
|
||||
|
@ -5,7 +5,7 @@ MACRO(INSTALL_HEADERS_WITH_DIRECTORY HEADER_LIST COMPONENT_NAME REMOVE_PREFIX)
|
||||
|
||||
FOREACH(HEADER ${${HEADER_LIST}})
|
||||
STRING(REGEX MATCH "(.*)[/\\]" DIR ${HEADER})
|
||||
STRING(REPLACE "${CMAKE_SOURCE_DIR}/${REMOVE_PREFIX}" "" DIR ${DIR})
|
||||
STRING(REPLACE "${REMOVE_PREFIX}" "" DIR ${DIR})
|
||||
INSTALL(FILES ${HEADER} DESTINATION include/${DIR} COMPONENT ${COMPONENT_NAME})
|
||||
ENDFOREACH(HEADER)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user