flibcpp: Activate SWIG rebuild when +swig (#21767)

This option allows downstream packages to build with SWIG and the flibcpp-exported SWIG interfaces.
This commit is contained in:
Seth R. Johnson 2021-02-18 14:12:18 -05:00 committed by GitHub
parent b448b639e6
commit 2d917e17d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,6 +44,7 @@ def cmake_args(self):
self.define_from_variant('BUILD_SHARED_LIBS', 'shared'),
self.define_from_variant('FLIBCPP_BUILD_DOCS', 'doc'),
self.define_from_variant('FLIBCPP_FORTRAN_STD', 'fstd'),
self.define_from_variant('FLIBCPP_USE_SWIG', 'swig'),
self.define('FLIBCPP_BUILD_TESTS', bool(self.run_tests)),
self.define('FLIBCPP_BUILD_EXAMPLES', bool(self.run_tests)),
]