From 34f3f22dffe3b1abd4f10e68f6f2dc72ddcb09c8 Mon Sep 17 00:00:00 2001 From: Jakub Kaczmarzyk Date: Mon, 10 Jul 2023 13:01:03 -0400 Subject: [PATCH] build openjpeg with -DCMAKE_BUILD_TYPE=Release This commit adds the option `-DCMAKE_BUILD_TYPE=Release` to the openjpeg build. Without this, ffast-math is not enabled and results in slower performance. Related to discussion in https://github.com/bayer-science-for-a-better-life/tiffslide/issues/72#issuecomment-1629355599, where we found performance differences between tiffslide and openslide. Dziekuje :) --- build_utils/build_libraries.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build_utils/build_libraries.sh b/build_utils/build_libraries.sh index 0c16678..c8fbb32 100644 --- a/build_utils/build_libraries.sh +++ b/build_utils/build_libraries.sh @@ -361,6 +361,7 @@ cd _build || exit 1 cmake \ -DCMAKE_INSTALL_PREFIX="${build_dir}" \ -DBUILD_CODEC=OFF \ + -DCMAKE_BUILD_TYPE=Release \ .. make install