From 9ac7fd264c61c18e257619d731b937bc1ce5daae Mon Sep 17 00:00:00 2001 From: tamasmeszaros Date: Thu, 10 Aug 2023 14:55:55 +0200 Subject: [PATCH] Fix GMP build error --- deps/+GMP/GMP.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deps/+GMP/GMP.cmake b/deps/+GMP/GMP.cmake index 4afcbde469..1cc59262ec 100644 --- a/deps/+GMP/GMP.cmake +++ b/deps/+GMP/GMP.cmake @@ -17,8 +17,8 @@ if (MSVC) add_custom_target(dep_GMP SOURCES ${_output}) else () - string(TOUPPER ${CMAKE_BUILD_TYPE} _buildtype_upper) - set(_gmp_ccflags "${CMAKE_CXX_FLAGS}_${_buildtype_upper} -fPIC -DPIC -Wall -Wmissing-prototypes -Wpointer-arith -pedantic -fomit-frame-pointer -fno-common") + string(TOUPPER "${CMAKE_BUILD_TYPE}" _buildtype_upper) + set(_gmp_ccflags "${CMAKE_CXX_FLAGS_${_buildtype_upper}} -fPIC -DPIC -Wall -Wmissing-prototypes -Wpointer-arith -pedantic -fomit-frame-pointer -fno-common") set(_gmp_build_tgt "${CMAKE_SYSTEM_PROCESSOR}") if (APPLE)