Skip to content

Commit

Permalink
Append mingw_stdthreads to EXTRA_LIBRARIES
Browse files Browse the repository at this point in the history
Currently for this CMake version, it seems that there is no support to
link other targets to object libraries. I'll add it to EXTRA_LIBRARIES
instead.
  • Loading branch information
sakertooth committed Aug 20, 2023
1 parent 2c7c094 commit 11b6220
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ if(LMMS_HAVE_MP3LAME)
list(APPEND EXTRA_LIBRARIES mp3lame::mp3lame)
endif()

IF(LMMS_USE_MINGW_STD_THREADS)
list(APPEND EXTRA_LIBRARIES mingw_stdthreads)
ENDIF()

SET(LMMS_REQUIRED_LIBS ${LMMS_REQUIRED_LIBS}
${CMAKE_THREAD_LIBS_INIT}
${QT_LIBRARIES}
Expand Down Expand Up @@ -207,10 +211,6 @@ FOREACH(LIB ${LMMS_REQUIRED_LIBS})
ENDIF()
ENDFOREACH()

IF(USE_MINGW_STD_THREADS)
TARGET_LINK_LIBRARIES(lmmsobjs PRIVATE mingw_stdthreads)
ENDIF()

IF(LMMS_BUILD_WIN32)
SET_TARGET_PROPERTIES(lmms PROPERTIES
ENABLE_EXPORTS ON
Expand Down

0 comments on commit 11b6220

Please sign in to comment.