diff --git a/src/plugins/gmedecoder/CMakeLists.txt b/src/plugins/gmedecoder/CMakeLists.txt index 781e3d3b3..3378e3f65 100644 --- a/src/plugins/gmedecoder/CMakeLists.txt +++ b/src/plugins/gmedecoder/CMakeLists.txt @@ -6,9 +6,9 @@ set (gmedecoder_SOURCES ) add_definitions(-DHAVE_STDINT_H) -add_library(gmedecoder SHARED ${gmedecoder_SOURCES}) if (${BUILD_STANDALONE} MATCHES "true") + add_library(gmedecoder SHARED ${gmedecoder_SOURCES}) add_vendor_includes(gmedecoder) find_vendor_library(GME gme) target_link_libraries(gmedecoder ${GME}) @@ -17,6 +17,7 @@ else() if ("${GME}" STREQUAL "GME-NOTFOUND") disable_plugin(gmedecoder) else() + add_library(gmedecoder SHARED ${gmedecoder_SOURCES}) target_link_libraries(gmedecoder ${GME}) endif() endif() diff --git a/src/plugins/libopenmptdecoder/CMakeLists.txt b/src/plugins/libopenmptdecoder/CMakeLists.txt index f68eaa69d..b5425d0ef 100644 --- a/src/plugins/libopenmptdecoder/CMakeLists.txt +++ b/src/plugins/libopenmptdecoder/CMakeLists.txt @@ -5,9 +5,8 @@ set (openmptdecoder_SOURCES OpenMptIndexerSource.cpp Utility.cpp) -add_library(openmptdecoder SHARED ${openmptdecoder_SOURCES}) - if (${BUILD_STANDALONE} MATCHES "true") + add_library(openmptdecoder SHARED ${openmptdecoder_SOURCES}) target_include_directories(openmptdecoder BEFORE PRIVATE ${VENDOR_INCLUDE_DIRECTORIES}) find_vendor_library(LIBOPENMPT openmpt) target_link_libraries(openmptdecoder ${LIBOPENMPT}) @@ -18,6 +17,7 @@ else() if ("${LIBOPENMPT}" STREQUAL "LIBOPENMPT-NOTFOUND") disable_plugin(openmptdecoder) else() + add_library(openmptdecoder SHARED ${openmptdecoder_SOURCES}) target_link_libraries(openmptdecoder ${LIBOPENMPT} ${LIBMPG123} ${LIBZ}) endif() endif()