Skip to content

Commit d5b80a5

Browse files
authored
Fix GMT_LIBDIR_RELATIVE for Windows (#3361)
On Windows, the gmt.dll is located in the `bin` directory, instead of the usual `lib` directory. Thus, for windows, we need to set `GMT_LIBDIR_RELATIVE` to `bin`. Closes #3353.
1 parent a1e72e6 commit d5b80a5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/config.h.in

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@
3333

3434
/* path to executables/libs */
3535
#define GMT_BINDIR_RELATIVE "@GMT_BINDIR@"
36-
#define GMT_LIBDIR_RELATIVE "@GMT_LIBDIR@"
36+
#ifndef WIN32
37+
#define GMT_LIBDIR_RELATIVE "@GMT_LIBDIR@"
38+
#else
39+
#define GMT_LIBDIR_RELATIVE "@GMT_BINDIR@"
40+
#endif
3741

3842
/* path to shared files */
3943
#define GMT_SHARE_DIR "@CMAKE_INSTALL_PREFIX@/@GMT_DATADIR@"

0 commit comments

Comments
 (0)