Working on windows builds (#7381)
authorGereon Kremer <nafur42@gmail.com>
Thu, 21 Oct 2021 12:31:59 +0000 (05:31 -0700)
committerGitHub <noreply@github.com>
Thu, 21 Oct 2021 12:31:59 +0000 (12:31 +0000)
commit0291f941d4a2bae49a80c3db4afe626b55636fdf
tree318eb116796057004c7744ff36b9b5261ce22f1b
parent35792ea9345e792aa9ae4748aced5213f4bbfa76
Working on windows builds (#7381)

This makes a push to fix our windows nightly builds. It does a couple of things:
- remove `CVC5_WINDOWS_BUILD` and check `CMAKE_SYSTEM_NAME` instead
- use `CMAKE_SHARED_LIBRARY_SUFFIX` instead of `so`
- properly set `IMPORTED_IMPLIB` on imported shared libraries
- fix the GMP build, where the header is different for shared and static builds
- fix the find&sed patching for libpoly
- add `CVC5_EXPORT` to nested types in the API
- remove `CVC5_EXPORT` from enums
- add `-Dcvc5_obj_EXPORTS` to actually enable exports
- Fix how template function `safe_print` is exported.
15 files changed:
cmake/ConfigureCvc5.cmake
cmake/FindANTLR3.cmake
cmake/FindCryptoMiniSat.cmake
cmake/FindGMP.cmake
cmake/FindPoly.cmake
cmake/Toolchain-mingw64.cmake
src/CMakeLists.txt
src/api/cpp/cvc5.h
src/api/cpp/cvc5_kind.h
src/api/parsekinds.py
src/base/CMakeLists.txt
src/context/CMakeLists.txt
src/options/language.h
src/parser/CMakeLists.txt
src/util/safe_print.h