From ec9efc09ff44c082acf7607ed4bf2b1e1c399b8a Mon Sep 17 00:00:00 2001 From: xaedes Date: Tue, 31 Jan 2017 19:15:48 +0100 Subject: [PATCH] Fix issue #27 by linking against regex library in WIN32 && MINGW compilation platform. --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1f1487400..4c25f97fa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -124,6 +124,13 @@ endif() # GPSTk shared-object library (e.g. libgpstk.so) build target add_library( gpstk ${STADYN} ${GPSTK_SRC_FILES} ${GPSTK_INC_FILES} ) +if (WIN32) #Windows Linker Options + if (MINGW) + target_link_libraries(gpstk regex) + endif() +endif() + + # GPSTk library install target install( TARGETS gpstk DESTINATION "${CMAKE_INSTALL_LIBDIR}" EXPORT "${EXPORT_TARGETS_FILENAME}" )