Skip to content

Commit

Permalink
cmake vcpkg bugfix in deploy/install
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Jul 24, 2024
1 parent f1a06b8 commit 39b15ad
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions cmake/Modules/TinyDeployment.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,17 @@ function(tiny_install_tinyorm)
TYPE INCLUDE
FILES_MATCHING PATTERN "*.hpp"
)
endif()
# TinyMySql
if(TINY_BUILD_LOADABLE_DRIVERS AND BUILD_MYSQL_DRIVER)
install(DIRECTORY "drivers/mysql/include/orm"
TYPE INCLUDE
FILES_MATCHING PATTERN "*.hpp"
)

# Always install specific SQL Drivers' header files, it doesn't matter if
# they are built as shared, static, or loadable drivers

# TinyMySql
if(BUILD_MYSQL_DRIVER)
install(DIRECTORY "drivers/mysql/include/orm"
TYPE INCLUDE
FILES_MATCHING PATTERN "*.hpp"
)
endif()
endif()

# Install all other files
Expand Down

0 comments on commit 39b15ad

Please sign in to comment.