From 875437a221b30c4f427558b1476e68e9f1350716 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Wed, 3 Jan 2024 16:13:50 +0100
Subject: [PATCH] Build system: install preprocessor symlink under libdir

(cherry picked from commit 049006a1bf9740ae952578e0f3df3e7b34cbe2b6)
---
 meson.build | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/meson.build b/meson.build
index fb0f891202..1592670746 100644
--- a/meson.build
+++ b/meson.build
@@ -21,9 +21,14 @@ c_compiler = meson.get_compiler('c')
 
 subdir('preprocessor/src')
 
-# Compatibility symlink
-# NB: the following my be improved if this wishlist item is done:
+# NB: the following two symlinks my be improved if this wishlist item is done:
 #  https://github.com/mesonbuild/meson/issues/11519
+
+install_symlink('dynare-preprocessor', install_dir : 'lib/dynare/preprocessor/',
+                pointing_to : '../../../bin/dynare-preprocessor'
+                              + (host_machine.system() == 'windows' ? '.exe' : ''))
+
+# Compatibility symlink
 install_symlink('dynare_m' + (host_machine.system() == 'windows' ? '.exe' : ''),
                 install_dir : 'lib/dynare/matlab/preprocessor64',
                 pointing_to : '../../../../bin/dynare-preprocessor'
-- 
GitLab