diff --git a/CMakeLists.txt b/CMakeLists.txt index e2312f80..aa4417c3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,7 @@ cmake_minimum_required(VERSION 3.15.7) project(ScipPP LANGUAGES CXX) set(CMAKE_CXX_STANDARD 17) +set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) option(USE_COVERAGE "Create coverage report." OFF) option(BUILD_TESTS "Build tests." OFF) diff --git a/changelog.md b/changelog.md index c26c91ad..9aa6dfdb 100644 --- a/changelog.md +++ b/changelog.md @@ -4,6 +4,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] - [Doc:Unreleased] +## [1.0.2] - 2023-08-12 + +### Fixed + +- [PR7](https://github.com/scipopt/SCIPpp/pull/7) + Export symbols on Windows. + ## [1.0.1] - 2023-08-10 ### Added @@ -22,5 +29,6 @@ Initial release [Doc:Unreleased]: https://scipopt.github.io/SCIPpp/ [Unreleased]: https://github.com/scipopt/SCIPpp +[1.0.2]: https://github.com/scipopt/SCIPpp/releases/tag/1.0.2 [1.0.1]: https://github.com/scipopt/SCIPpp/releases/tag/1.0.1 [1.0.0]: https://github.com/scipopt/SCIPpp/releases/tag/1.0.0 diff --git a/conanfile.py b/conanfile.py index c77c2002..48007bb3 100644 --- a/conanfile.py +++ b/conanfile.py @@ -61,12 +61,15 @@ def configure(self): self.options.rm_safe("fPIC") def set_version(self): - git = Git(self, folder=self.recipe_folder) - try: - self._full_version = git.run("describe --tags --dirty=-d").strip() - self.version = self._full_version.split('-')[0] - except: - self.version = "1.0.0" + if self.version is None: + git = Git(self, folder=self.recipe_folder) + try: + self._full_version = git.run("describe --tags --dirty=-d").strip() + self.version = self._full_version.split('-')[0] + except: + self.version = "1.0.2" + else: + self._full_version = self.version def layout(self): cmake_layout(self)