Skip to content

Commit 24b246c

Browse files
committed
use release build
1 parent 1a4f3fe commit 24b246c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ fn build_and_link_libsbml(dep_build: &str) -> miette::Result<String> {
9292
// This is necessary because the libraries are not installed in the
9393
// system directories by default. Unlinke MacOS and Linux kernels
9494
cmake::Config::new(LIBSBML_PATH)
95+
.define("CMAKE_BUILD_TYPE", "Release")
9596
.define("WITH_STATIC_RUNTIME", WITH_STATIC_RUNTIME)
9697
.define("WITH_LIBXML", WITH_LIBXML)
9798
.define("WITH_EXPAT", WITH_EXPAT)
@@ -122,6 +123,7 @@ fn build_and_link_libsbml(dep_build: &str) -> miette::Result<String> {
122123
.define("WITH_STATIC_RUNTIME", WITH_STATIC_RUNTIME)
123124
.define("WITH_LIBXML", WITH_LIBXML)
124125
.define("WITH_EXPAT", WITH_EXPAT)
126+
.define("LIBSBML_USE_STRICT_INCLUDES", "True")
125127
.build()
126128
};
127129

@@ -159,7 +161,6 @@ fn build_and_link_sbml_deps() -> miette::Result<String> {
159161
.define("WITH_BZIP2", "False")
160162
.define("WITH_CHECK", "False")
161163
.define("BUILD_SHARED_LIBS", "False")
162-
.define("MSVC", "ON")
163164
.build();
164165

165166
// Configure cargo to link against the built libraries

0 commit comments

Comments
 (0)