mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 11:41:36 +08:00
774469f31a
* [libmysql] update to 8.0.32 * update version * minimize system libs patch * update version * fix compilation on macOS with homebrew * update version * fix `\n` by mistake * fix mysql_config * update version
21 lines
902 B
Diff
21 lines
902 B
Diff
diff --git a/cmake/libutils.cmake b/cmake/libutils.cmake
|
|
index ae13a63dfdc..b450b3c2e4c 100644
|
|
--- a/cmake/libutils.cmake
|
|
+++ b/cmake/libutils.cmake
|
|
@@ -222,6 +222,7 @@ MACRO(MERGE_LIBRARIES_SHARED TARGET_ARG)
|
|
ADD_VERSION_INFO(${TARGET} SHARED SRC)
|
|
ENDIF()
|
|
ADD_LIBRARY(${TARGET} SHARED ${SRC})
|
|
+ TARGET_INCLUDE_DIRECTORIES(${TARGET} INTERFACE $<INSTALL_INTERFACE:include>)
|
|
|
|
IF(ARG_EXCLUDE_FROM_ALL)
|
|
IF(NOT ARG_SKIP_INSTALL)
|
|
@@ -361,6 +362,7 @@ MACRO(MERGE_CONVENIENCE_LIBRARIES TARGET_ARG)
|
|
CONFIGURE_FILE_CONTENT("${SOURCE_FILE_CONTENT}" "${SOURCE_FILE}")
|
|
|
|
ADD_LIBRARY(${TARGET} STATIC ${SOURCE_FILE})
|
|
+ TARGET_INCLUDE_DIRECTORIES(${TARGET} INTERFACE $<INSTALL_INTERFACE:include>)
|
|
MY_CHECK_CXX_COMPILER_WARNING("-Wmissing-profile" HAS_MISSING_PROFILE)
|
|
IF(FPROFILE_USE AND HAS_MISSING_PROFILE)
|
|
ADD_COMPILE_FLAGS(${SOURCE_FILE} COMPILE_FLAGS ${HAS_MISSING_PROFILE})
|