vcpkg/ports/libmysql/re2_add_compile_flags.patch
Tobias Brückner 64f7f2590d
[libmysql] Fix for missing "ADD_COMPILE_FLAGS" command (#10162)
* [libmysql] Apply patch to prevent configuration error in extra/re2

Configuration of the embedded extra/re2 produces an error on Mac with Clang:

    CMake Error at extra/re2/CMakeLists.txt:74 (ADD_COMPILE_FLAGS):
      Unknown CMake command "ADD_COMPILE_FLAGS".

cmake/compile_flags.cmake was not included.

* [libmysql] Remove empty directory /lib/plugin/debug after installation

* [libmysql] Update version to 8.0.4-6

* [libmysql] Remove deprecated include(vcpkg_common_functions)

* [libmysql] x64-osx is now expected to pass CI

* [libmysql] Simplify copying of copyright file

* [libmysql] Handle unsupported triplets with vcpkg_fail_port_install
2020-02-28 21:56:22 -08:00

13 lines
591 B
Diff

diff --git a/extra/re2/CMakeLists.txt b/extra/re2/CMakeLists.txt
index ca39db726..965f2c8dc 100644
--- a/extra/re2/CMakeLists.txt
+++ b/extra/re2/CMakeLists.txt
@@ -71,6 +71,7 @@ IF(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
HAVE_TAUTOLOGICAL_UNDEFINED_COMPARE)
IF(HAVE_TAUTOLOGICAL_UNDEFINED_COMPARE)
# Boost source has unused local typedefs.
+ INCLUDE(${MYSQL_CMAKE_SCRIPT_DIR}/compile_flags.cmake)
ADD_COMPILE_FLAGS(${RE2_SOURCES}
COMPILE_FLAGS "-Wno-tautological-undefined-compare")
ENDIF()