diff --git a/src/config.h.in b/src/config.h.in index d1cea8f564d..33a18a24146 100644 --- a/src/config.h.in +++ b/src/config.h.in @@ -33,7 +33,11 @@ /* path to executables/libs */ #define GMT_BINDIR_RELATIVE "@GMT_BINDIR@" -#define GMT_LIBDIR_RELATIVE "@GMT_LIBDIR@" +#ifndef WIN32 + #define GMT_LIBDIR_RELATIVE "@GMT_LIBDIR@" +#else + #define GMT_LIBDIR_RELATIVE "@GMT_BINDIR@" +#endif /* path to shared files */ #define GMT_SHARE_DIR "@CMAKE_INSTALL_PREFIX@/@GMT_DATADIR@"