Skip to content
Snippets Groups Projects
Commit e21a2a9e authored by Valerio Mariani's avatar Valerio Mariani
Browse files

Fixed header problems with building with ENABLE_STATIC

parent 68ad09d3
Branches
Tags
No related merge requests found
......@@ -258,6 +258,10 @@ macro(module)
set(_HDR_STAGE_DIR "${_HEADER_OUTPUT_DIR}/${_DIR}")
stage_headers("${_ABS_HEADER_NAMES}" "${_HDR_STAGE_DIR}"
"${_LIB_NAME}" "${_DIR}")
if (ENABLE_STATIC)
stage_headers("${_ABS_HEADER_NAMES}" "${_HDR_STAGE_DIR}"
"${_LIB_NAME}_static" "${_DIR}")
endif()
set(_HEADERS)
else()
list(APPEND _HEADERS "${_HEADER}")
......@@ -276,6 +280,10 @@ macro(module)
set(_HDR_STAGE_DIR "${_HEADER_OUTPUT_DIR}")
stage_headers("${_ABS_HEADER_NAMES}" "${_HDR_STAGE_DIR}"
"${_LIB_NAME}" "")
if (ENABLE_STATIC)
stage_headers("${_ABS_HEADER_NAMES}" "${_HDR_STAGE_DIR}"
"${_LIB_NAME}_static" "")
endif()
endif()
endif()
endmacro()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment