Skip to content

Commit

Permalink
CMake: Improve backwards compatibility with older CMake versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Holzhaus committed Sep 12, 2019
1 parent e288324 commit b09b2d5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,10 @@ target_link_libraries(mixxx-lib PUBLIC mixxx-qrc)
# Installation and Packaging
#
include(GNUInstallDirs)
install(TARGETS mixxx)
install(
TARGETS mixxx
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

# Skins
install(
Expand Down Expand Up @@ -764,10 +767,7 @@ add_dependencies(mixxx-lib libebur128)
target_include_directories(mixxx-lib PUBLIC
"${CMAKE_CURRENT_SOURCE_DIR}/lib/libebur128/ebur128"
)
target_link_directories(mixxx-lib PUBLIC
"${CMAKE_CURRENT_BINARY_DIR}/lib/libebur128"
)
target_link_libraries(mixxx-lib PUBLIC "${CMAKE_STATIC_LIBRARY_PREFIX}ebur128${CMAKE_STATIC_LIBRARY_SUFFIX}")
target_link_libraries(mixxx-lib PUBLIC "${CMAKE_CURRENT_BINARY_DIR}/lib/libebur128/${CMAKE_STATIC_LIBRARY_PREFIX}ebur128${CMAKE_STATIC_LIBRARY_SUFFIX}")

# FidLib
add_library(fidlib OBJECT lib/fidlib/fidlib.c)
Expand Down

0 comments on commit b09b2d5

Please sign in to comment.