McStasMcXtrace / mccode-antlr

McCode grammar implemented with ANTLR4
1 stars 0 forks source link

Some components use the GNU Scientific Library #77

Closed g5t closed 1 month ago

g5t commented 1 month ago

There are 18 components in McCode that need to link against the GNU Scientific Library, which indicate this fact by having a DEPENDENCY line including @GSLFLAGS@ https://github.com/search?q=repo%3AMcStasMcXtrace%2FMcCode+GSLFLAGS+path%3A*.comp&type=code

McStas and McXtrace set this as a configuration file variable at CMake configure time https://github.com/McStasMcXtrace/McCode/blob/6ca132c9d1cab4d18dda36167119f4405154ec2b/cmake/Modules/PlatformDefaults.cmake#L96-L103

Ensuring that the library is actually present is beyond mccode-antlr, but we can support this style of @{config['flags'][key]}FLAGS@ replacement in order to allow use of these components.

g5t commented 1 month ago

Fixed by #78