Fix Configuration::isStaticBuild (#7456)
authorGereon Kremer <nafur42@gmail.com>
Tue, 26 Oct 2021 11:58:53 +0000 (04:58 -0700)
committerGitHub <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

index 35a899617d3784789ef4b711ddbaa7cd3f723c9e..c9e65011750a9cd663a108b735c64b314f93eb31 100644 (file)
@@ -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; }