From c516149d9c77b3aee389d36e3eeeb3480e14d51a Mon Sep 17 00:00:00 2001 From: Vitaly Zaitsev Date: Wed, 19 Apr 2023 16:53:19 +0200 Subject: [PATCH] Always build in Release configuration. --- yaml-cpp.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/yaml-cpp.spec b/yaml-cpp.spec index a7da02b..90f6971 100644 --- a/yaml-cpp.spec +++ b/yaml-cpp.spec @@ -41,14 +41,16 @@ The %{name}-static package contains the static library for %{name}. %build %cmake -B build_static \ + -DCMAKE_BUILD_TYPE=Release \ -DYAML_CPP_BUILD_TOOLS:BOOL=OFF \ -DYAML_CPP_FORMAT_SOURCE:BOOL=OFF \ - -DYAML_BUILD_SHARED_LIBS:BOOL=OFF \ + -DYAML_CPP_INSTALL:BOOL=ON \ -DYAML_BUILD_SHARED_LIBS:BOOL=OFF \ -DYAML_CPP_BUILD_TESTS:BOOL=OFF %make_build -C build_static %cmake -B build_shared \ + -DCMAKE_BUILD_TYPE=Release \ -DYAML_CPP_BUILD_TOOLS:BOOL=OFF \ -DYAML_CPP_FORMAT_SOURCE:BOOL=OFF \ -DYAML_CPP_INSTALL:BOOL=ON \