only add mcpl-support if OPENMC_MCPL is defined

This commit is contained in:
Erik B Knudsen 2022-07-13 12:13:10 +02:00
parent c2a5d91fb5
commit cd163ef0b9

View file

@ -430,9 +430,11 @@ void read_settings_xml()
if (check_for_node(node, "file")) {
auto path = get_node_value(node, "file", false, true);
model::external_sources.push_back(make_unique<FileSource>(path));
#ifdef OPENMC_MCPL
} else if (check_for_node(node, "mcpl")) {
auto path = get_node_value(node, "mcpl", false, true);
model::external_sources.push_back(make_unique<MCPLFileSource>(path));
#endif
} else if (check_for_node(node, "library")) {
// Get shared library path and parameters
auto path = get_node_value(node, "library", false, true);