From 0b1c356837d4a13308ba9fe9c2388425d0eb9592 Mon Sep 17 00:00:00 2001 From: Florent Rougon Date: Mon, 26 Dec 2016 08:32:35 +0100 Subject: [PATCH] Make the FG installation prefix available to C++ code via config.h CMAKE_INSTALL_PREFIX is now available as FG_INSTALL_PREFIX from config.h. --- src/Include/config_cmake.h.in | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Include/config_cmake.h.in b/src/Include/config_cmake.h.in index 9989badf2..84eb200b8 100644 --- a/src/Include/config_cmake.h.in +++ b/src/Include/config_cmake.h.in @@ -33,6 +33,7 @@ #cmakedefine ENABLE_JSBSIM #define PKGLIBDIR "@FG_DATA_DIR@" +#define FG_INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@" #define WEB_BROWSER "@WEB_BROWSER@" // Ensure FG_HAVE_xxx always have a value