Skip to content

Commit

Permalink
Added compilation support under MSYS2 (#539)
Browse files Browse the repository at this point in the history
Add additional "MSYS" checking for CMAKE_SYSTEM_NAME to support compilation under MSYS2.
  • Loading branch information
pffang authored Oct 4, 2023
1 parent 10f2330 commit 38407d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/daemon/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ if(WITH_DLT_SHM_ENABLE)
${PROJECT_SOURCE_DIR}/src/shared/dlt_shm.c)
endif()

if("${CMAKE_SYSTEM_NAME}" MATCHES "Linux|CYGWIN")
if("${CMAKE_SYSTEM_NAME}" MATCHES "Linux|CYGWIN|MSYS")
set(RT_LIBRARY rt)
set(SOCKET_LIBRARY "")
else()
Expand Down
2 changes: 1 addition & 1 deletion src/lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ endif()

add_library(dlt ${dlt_LIB_SRCS})

if("${CMAKE_SYSTEM_NAME}" MATCHES "Linux|CYGWIN")
if("${CMAKE_SYSTEM_NAME}" MATCHES "Linux|CYGWIN|MSYS")
set(RT_LIBRARY rt)
set(SOCKET_LIBRARY "")
else()
Expand Down

0 comments on commit 38407d9

Please sign in to comment.