diff --git a/CMakeLists.txt b/CMakeLists.txt index 518c959a..c092c16c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -319,6 +319,11 @@ else(HAVE_SUBUNIT) endif (HAVE_SUBUNIT) if (NOT ENABLE_REGEX AND WITH_PCREPOSIX) + find_package(PCRE) + if (PCRE_FOUND) + include_directories(${PCRE_INCLUDE_DIRS}) + link_directories(${PCRE_LIBRARY_DIRS}) + endif() # pcreposix functions are just wrappers for pcre functions check_library_exists(pcreposix regcomp "" HAVE_LIBPCREPOSIX) if (HAVE_LIBPCREPOSIX) diff --git a/appveyor.yml b/appveyor.yml index 0ec681cf..aa3c9880 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -58,6 +58,7 @@ before_build: - if %platform%==cygwin bash -c "./configure" - if %platform%==mingw32 set PATH=C:\MinGW\bin;%PATH% - if %platform%==mingw32 appveyor-retry nuget install pcre -Verbosity detailed -OutputDirectory C:\pcre + - if %platform%==mingw32 set CMAKE_PREFIX_PATH=C:\pcre - if %platform%==mingw32 cmake -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=%P% - if %platform%==mingw64msys set PATH=C:\msys64\mingw64\bin;C:\msys64\usr\bin;%PATH% - if %platform%==mingw64msys bash -c "autoreconf -i"