diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2017-09-21 16:05:39 +0000 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2017-09-21 16:05:39 +0000 |
commit | 3fbd4aa03208833001296e63847c7922ff0bdd8b (patch) | |
tree | 13b4b535ee7c2191d99babb0239f01bc11f303a0 | |
parent | 0a44ae6528d1fdb2d4a9dab1be7e36931eac8236 (diff) | |
download | mariadb-git-3fbd4aa03208833001296e63847c7922ff0bdd8b.tar.gz |
CMake : Do not use FindPkgConfig on Windows
Even if cmake can find pkg-config (e.g the one supplied with strawberry perl
), we cannot link with pkg-config-found libraries or use the headers -they
are mingw, 32bit-only.
-rw-r--r-- | cmake/systemd.cmake | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cmake/systemd.cmake b/cmake/systemd.cmake index 6986cb748ce..f7365066ef6 100644 --- a/cmake/systemd.cmake +++ b/cmake/systemd.cmake @@ -13,11 +13,10 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -INCLUDE(FindPkgConfig) -# http://www.cmake.org/cmake/help/v3.0/module/FindPkgConfig.html - MACRO(CHECK_SYSTEMD) IF(UNIX) + INCLUDE(FindPkgConfig) + # http://www.cmake.org/cmake/help/v3.0/module/FindPkgConfig.html SET(WITH_SYSTEMD "auto" CACHE STRING "Enable systemd scripts and notification support") IF(WITH_SYSTEMD STREQUAL "yes" OR WITH_SYSTEMD STREQUAL "auto") IF(PKG_CONFIG_FOUND) |