From 0d55d20bc8467ee2963e6cf54c6ef6c9ffacccfd Mon Sep 17 00:00:00 2001 From: Jonathan Hudson Date: Mon, 11 Mar 2024 10:44:23 +0000 Subject: [PATCH] fix cygwin/sitl build with cmake 3.28.3 (#9787) --- cmake/sitl.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/sitl.cmake b/cmake/sitl.cmake index 78697f98a..ee43aa9a9 100644 --- a/cmake/sitl.cmake +++ b/cmake/sitl.cmake @@ -34,7 +34,7 @@ set(SITL_LINK_OPTIONS -Wl,-L${STM32_LINKER_DIR} ) -if(${WIN32} OR ${CYGWIN}) +if(${CYGWIN}) set(SITL_LINK_OPTIONS ${SITL_LINK_OPTIONS} "-static-libgcc") endif() @@ -131,7 +131,7 @@ function (target_sitl name) target_link_options(${exe_target} PRIVATE -T${script_path}) endif() - if(${WIN32} OR ${CYGWIN}) + if(${CYGWIN}) set(exe_filename ${CMAKE_BINARY_DIR}/${binary_name}.exe) else() set(exe_filename ${CMAKE_BINARY_DIR}/${binary_name}) -- 2.11.4.GIT