Skip to content

Commit

Permalink
Added a comment why we use qt_add_executable()
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer committed Feb 15, 2022
1 parent fd954c6 commit 67dde53
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1258,6 +1258,8 @@ endif()
# The mixxx executable
if(QT6 AND CMAKE_VERSION VERSION_LESS "3.21")
find_package(Qt6 REQUIRED COMPONENTS Core) # For Qt Core cmake functions
# qt_add_executable() is the recommended initial call for qt_finalize_target()
# below that takes care of the correct object order in the resulting binary
qt_add_executable(mixxx WIN32 src/main.cpp MANUAL_FINALIZATION)
else()
add_executable(mixxx WIN32 src/main.cpp)
Expand Down

0 comments on commit 67dde53

Please sign in to comment.