Skip to content

Commit

Permalink
Look for libcarla_native-plugin.dll on Windows (#6726)
Browse files Browse the repository at this point in the history
Closes #5984
  • Loading branch information
tresf authored Jun 5, 2023
1 parent bd5f1b9 commit bceee6c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions plugins/CarlaBase/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,13 @@ if(LMMS_HAVE_WEAKCARLA)
${CMAKE_CURRENT_SOURCE_DIR}/carla/source/backend
)

# force "lib" prefix
IF(LMMS_BUILD_WIN32)
# use carla.dll
SET(CMAKE_SHARED_LIBRARY_PREFIX "")
SET(CARLA_NATIVE_LIB carla)
ELSE()
# use libcarla_native-plugin
SET(CARLA_NATIVE_LIB carla_native-plugin)
SET(CMAKE_SHARED_LIBRARY_PREFIX "lib")
ENDIF()

SET(CARLA_NATIVE_LIB carla_native-plugin)

ADD_LIBRARY(${CARLA_NATIVE_LIB} SHARED DummyCarla.cpp)
TARGET_INCLUDE_DIRECTORIES(${CARLA_NATIVE_LIB} PUBLIC ${CARLA_INCLUDE_DIRS})
INSTALL(TARGETS ${CARLA_NATIVE_LIB}
Expand Down

0 comments on commit bceee6c

Please sign in to comment.