Skip to content

Commit

Permalink
fix cygwin/sitl build with cmake 3.28.3 (iNavFlight#9787) (iNavFlight…
Browse files Browse the repository at this point in the history
  • Loading branch information
stronnag authored Mar 11, 2024
1 parent f025ee5 commit bc45aa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/sitl.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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})
Expand Down

0 comments on commit bc45aa7

Please sign in to comment.