Skip to content

Commit e7a2270

Browse files
committed
Fix for headers install path for make #126
1 parent 3fa60a2 commit e7a2270

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,12 @@ endif()
201201
## install
202202
#########################
203203
if(MyHTML_INSTALL_HEADER)
204-
install(DIRECTORY "${PROJECT_DIR_API_HEADER}" DESTINATION "include" FILES_MATCHING PATTERN "*.h")
204+
file(GLOB PROJECT_HEADER_DIRS "${PROJECT_DIR_API_HEADER}/*")
205+
foreach(ITEM ${PROJECT_HEADER_DIRS})
206+
if(IS_DIRECTORY "${ITEM}")
207+
install(DIRECTORY "${ITEM}" DESTINATION "include" FILES_MATCHING PATTERN "*.h")
208+
endif()
209+
endforeach()
205210
endif()
206211

207212
if(MyHTML_BUILD_SHARED)

0 commit comments

Comments
 (0)