Skip to content

Commit

Permalink
Add patch to remove over-assertive find_package checks
Browse files Browse the repository at this point in the history
  • Loading branch information
SchaichAlonso committed Sep 11, 2023
1 parent f35447e commit ee14918
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ports/tinyorm/0003-reduce-assert-scopes.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
diff --git a/cmake/TinyOrmConfig.cmake.in b/cmake/TinyOrmConfig.cmake.in
index c7b0a61a..f7eee8f1 100644
--- a/cmake/TinyOrmConfig.cmake.in
+++ b/cmake/TinyOrmConfig.cmake.in
@@ -18,9 +18,9 @@ unset(tiny_build_type)
message(CHECK_START "Configuring @PROJECT_NAME@ package")
list(APPEND CMAKE_MESSAGE_INDENT " ")

-set_and_check(@TinyOrm_ns@_BIN_DIR "@PACKAGE_BIN_INSTALL_DIR@")
+set(@TinyOrm_ns@_BIN_DIR "@PACKAGE_BIN_INSTALL_DIR@")
set_and_check(@TinyOrm_ns@_CONFIG_DIR "@PACKAGE_CONFIG_INSTALL_DIR@")
-set_and_check(@TinyOrm_ns@_DOC_DIR "@PACKAGE_DOC_INSTALL_DIR@")
+set(@TinyOrm_ns@_DOC_DIR "@PACKAGE_DOC_INSTALL_DIR@")
set_and_check(@TinyOrm_ns@_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@")
set_and_check(@TinyOrm_ns@_LIB_DIR "@PACKAGE_LIB_INSTALL_DIR@")

1 change: 1 addition & 0 deletions ports/tinyorm/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ vcpkg_from_github(
PATCHES
0001-install-tom.patch
0002-comment.patch
0003-reduce-assert-scopes.patch
)

vcpkg_check_features(
Expand Down

0 comments on commit ee14918

Please sign in to comment.