Skip to content

Commit

Permalink
mariadb-connector-c: fix "warnings as errors" handling
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Jan 11, 2024
1 parent 1dcef46 commit ed011b4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion recipes/mariadb-connector-c/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ def _patch_sources(self):
replace_in_file(self, root_cmake, "${CURL_LIBRARIES}", "CURL::libcurl")
plugins_io_cmake = os.path.join(self.source_folder, "plugins", "io", "CMakeLists.txt")
replace_in_file(self, plugins_io_cmake, "${CURL_LIBRARIES}", "CURL::libcurl")
replace_in_file(self, root_cmake, " -WX", "", strict=False)
if Version(self.version) >= "3.3.6":
replace_in_file(self, root_cmake, "${WARNING_AS_ERROR}", "")
elif Version(self.version) >= "3.1.18":
replace_in_file(self, root_cmake, " -WX", "")
if Version(self.version) >= "3.3":
replace_in_file(self, root_cmake,
"INCLUDE(${CC_SOURCE_DIR}/cmake/FindZStd.cmake)",
Expand Down

0 comments on commit ed011b4

Please sign in to comment.