aboutsummaryrefslogtreecommitdiff
path: root/cmake/FindPCSC.cmake
diff options
context:
space:
mode:
authorcslashm <cslashm@gmail.com>2018-05-23 10:22:55 +0200
committercslashm <cslashm@gmail.com>2018-05-23 10:22:55 +0200
commitbdf5a3ad3fb9e626a0c1cc2264934f26d07d06fc (patch)
tree2b5825df6768c530b59dce4b4eda722fe6c106ec /cmake/FindPCSC.cmake
parentMerge pull request #3800 (diff)
downloadmonero-bdf5a3ad3fb9e626a0c1cc2264934f26d07d06fc.tar.xz
Fix PCSC compilation under windows
PR3843 based on release-v0.12 => rebased on master
Diffstat (limited to '')
-rw-r--r--cmake/FindPCSC.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/FindPCSC.cmake b/cmake/FindPCSC.cmake
index 8dd9d0e76..8332abc49 100644
--- a/cmake/FindPCSC.cmake
+++ b/cmake/FindPCSC.cmake
@@ -18,6 +18,9 @@ ENDIF (NOT WIN32)
FIND_PATH(PCSC_INCLUDE_DIR winscard.h
HINTS
+ IF (WIN32)
+ ${MSYS2_FOLDER}/mingw64/x86_64-w64-mingw32/include
+ ENDIF (WIN32)
/usr/include/PCSC
${PC_PCSC_INCLUDEDIR}
${PC_PCSC_INCLUDE_DIRS}
@@ -26,6 +29,9 @@ FIND_PATH(PCSC_INCLUDE_DIR winscard.h
FIND_LIBRARY(PCSC_LIBRARY NAMES pcsclite libpcsclite WinSCard PCSC
HINTS
+ IF (WIN32)
+ ${MSYS2_FOLDER}/mingw64/x86_64-w64-mingw32/lib
+ ENDIF (WIN32)
${PC_PCSC_LIBDIR}
${PC_PCSC_LIBRARY_DIRS}
)