From 3c7a38d759952a71949ccb3fe7ba32ee8518f9eb Mon Sep 17 00:00:00 2001 From: Vitalii Koshura Date: Thu, 20 Jul 2023 13:33:42 +0200 Subject: [PATCH] [mingw] Fix build of the cmake project Signed-off-by: Vitalii Koshura --- lib/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 43511ce915..4526626626 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -172,6 +172,12 @@ if(WIN32 OR APPLE) set_target_properties(boincapi PROPERTIES IMPORT_PREFIX "lib") endif() +# currently this is for MinGW only +set(build_options "") +if(HAVE_STRCASECMP) + list(APPEND build_options "-DHAVE_STRCASECMP") +endif() + if(APPLE) target_include_directories(boinc PUBLIC $ @@ -187,12 +193,14 @@ elseif(WIN32) -D_CRT_SECURE_NO_WARNINGS -DWIN32 -D_CONSOLE + ${build_options} ) target_compile_definitions(boincapi PUBLIC -D_CRT_SECURE_NO_WARNINGS -DWIN32 -D_CONSOLE + ${build_options} ) target_include_directories(boinc PUBLIC