Browse Source

cmake: use libdir without subdir on windows

Signed-off-by: falkTX <falktx@falktx.com>
fix-audiofile-buffering
falkTX 1 year ago
parent
commit
ad74034145
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 11 additions and 4 deletions
  1. +11
    -4
      cmake/CMakeLists.txt

+ 11
- 4
cmake/CMakeLists.txt View File

@@ -127,6 +127,13 @@ endif()
#######################################################################################################################
# utilities

if(WIN32)
set(CARLA_INSTALL_LIBDIR ${CMAKE_INSTALL_LIBDIR})
else()
set(CARLA_INSTALL_LIBDIR ${CMAKE_INSTALL_LIBDIR}/carla)
endif()
mark_as_advanced(CARLA_INSTALL_LIBDIR)

function(set_common_target_properties TARGET)
target_compile_definitions(${TARGET}
PRIVATE
@@ -922,8 +929,8 @@ target_sources(carla-standalone
)

install(TARGETS carla-standalone
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/carla
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/carla
ARCHIVE DESTINATION ${CARLA_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CARLA_INSTALL_LIBDIR}
FRAMEWORK DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
@@ -1023,8 +1030,8 @@ target_sources(carla-utils
)

install(TARGETS carla-utils
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/carla
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/carla
ARCHIVE DESTINATION ${CARLA_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CARLA_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
FRAMEWORK DESTINATION ${CMAKE_INSTALL_LIBDIR}
)


Loading…
Cancel
Save