Linking MACROs in the CMakeList files

Discussion of compilation configuration and issues

Linking MACROs in the CMakeList files

Postby Khem » Fri Apr 29, 2016 9:20 am


I'm having trouble compiling the GMAT R2015a files using cmake as it is not recognising MACROs that have been defined in the upper level CMakeLists. I get the following error:

GMAT base setup
-- Use F2C version of MSISE.
CMake Error at base/CMakeLists.txt:534 (_ADDSOURCEGROUPS):
Unknown CMake command "_ADDSOURCEGROUPS".

MACRO _ADDSOURCEGROUPS has been defined in the upper level CMakelist in folder GMAT-R2015a but cannot be accessed in folder base.

Does anyone know how to link MACROs at different levels of CMakeList?

Any help would be greatly appreciated.


Posts: 1
Joined: Fri Apr 29, 2016 9:14 am

Re: Linking MACROs in the CMakeList files

Postby AaronWilliam » Fri Mar 17, 2017 11:50 am

The primary line of this code ensures that an adequately high form of CMake is introduced. 2.8.8 is the negligible variant required to set up deal.II, in this way it is protected to utilize this number here.Next, we discover our deal.II establishment with the assistance of the FIND_PACKAGE order. For this situation requiring at any rate form 8.5.0. The HINTS are a rundown of catalogs where the introduce index of deal Uk assignment help II is probably going to be found. To start with, the area perhaps characterized in the CMake variable DEAL_II_DIR is considered. From that point forward, we check whether we are in a subdirectory (first and second level) of the deal.II establishment and generally utilize nature variable DEAL_II_DIR.
Posts: 1
Joined: Fri Mar 17, 2017 11:32 am

Return to Compiling GMAT

Who is online

Users browsing this forum: No registered users and 1 guest