Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
monticore
EmbeddedMontiArc
generators
EMAM2Cpp
Commits
6fc64638
Commit
6fc64638
authored
Jul 20, 2018
by
Christoph Richter
Browse files
Reset CMakeConfig if backend or generateCMake is changed
parent
c08a84bb
Pipeline
#64057
passed with stage
in 2 minutes and 50 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/de/monticore/lang/monticar/generator/cpp/GeneratorCPP.java
View file @
6fc64638
...
...
@@ -54,7 +54,6 @@ public class GeneratorCPP implements Generator {
useOctaveBackend
();
TypeConverter
.
clearTypeSymbols
();
currentInstance
=
this
;
setupCMake
();
}
protected
void
setupCMake
()
{
...
...
@@ -64,9 +63,10 @@ public class GeneratorCPP implements Generator {
cMakeConfig
.
addModuleDependency
(
new
CMakeFindModule
(
"Armadillo"
,
true
));
}
}
public
void
useArmadilloBackend
()
{
MathConverter
.
curBackend
=
new
ArmadilloBackend
();
setupCMake
();
}
public
boolean
usesArmadilloBackend
()
{
...
...
@@ -75,6 +75,7 @@ public class GeneratorCPP implements Generator {
public
void
useOctaveBackend
()
{
MathConverter
.
curBackend
=
new
OctaveBackend
();
setupCMake
();
//Log.warn("This backend has been deprecated. Armadillo is the recommended backend now.");
}
...
...
@@ -407,6 +408,8 @@ public class GeneratorCPP implements Generator {
}
public
void
setGenerateCMake
(
boolean
generateCMake
)
{
if
(!
this
.
generateCMake
&&
generateCMake
)
setupCMake
();
this
.
generateCMake
=
generateCMake
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment