projects
/
cvc5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3735b03
)
Fix Configuration::isStaticBuild (#7456)
author
Gereon Kremer
<nafur42@gmail.com>
Tue, 26 Oct 2021 11:58:53 +0000
(
04:58
-0700)
committer
GitHub
<noreply@github.com>
Tue, 26 Oct 2021 11:58:53 +0000
(11:58 +0000)
This PR fixes a minor issue in Configuration::isStaticBuild() which would always return true. Note that CVC5_STATIC_BUILD is always defined via #cmakedefine01 in cvc5config.h.
src/base/configuration.cpp
patch
|
blob
|
history
diff --git
a/src/base/configuration.cpp
b/src/base/configuration.cpp
index 35a899617d3784789ef4b711ddbaa7cd3f723c9e..c9e65011750a9cd663a108b735c64b314f93eb31 100644
(file)
--- a/
src/base/configuration.cpp
+++ b/
src/base/configuration.cpp
@@
-73,11
+73,7
@@
bool Configuration::isCompetitionBuild() {
bool Configuration::isStaticBuild()
{
-#if defined(CVC5_STATIC_BUILD)
- return true;
-#else
- return false;
-#endif
+ return CVC5_STATIC_BUILD;
}
string Configuration::getPackageName() { return CVC5_PACKAGE_NAME; }