From: Frederic Marec Date: Wed, 18 Dec 2019 16:15:58 +0000 (+0100) Subject: plugins: Remove J1939 condition in CMakeLists file X-Git-Tag: 8.99.5~9 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F62%2F23462%2F3;p=apps%2Fagl-service-can-low-level.git plugins: Remove J1939 condition in CMakeLists file Remove condition to fix library link problem. This makes the build not happens at all if you don't have the J1939 CAN Kernel module isn't installed. Change-Id: I52f7bf2d6806e33505450c809a5ce7c463d91ab9 Signed-off-by: Frederic Marec Signed-off-by: Romain Forlot --- diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt index eba9542f..82ca2ffc 100755 --- a/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt @@ -16,33 +16,6 @@ # limitations under the License. ########################################################################### -PROJECT_TARGET_ADD(agl-vcar-signals) - - # Define targets - ADD_LIBRARY(${TARGET_NAME} MODULE ${TARGET_NAME}.cpp) - - # Alsa Plugin properties - SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES - LABELS "PLUGIN" - PREFIX "" - SUFFIX ".ctlso" - OUTPUT_NAME ${TARGET_NAME} - ) - - target_include_directories(${TARGET_NAME} - PRIVATE "../low-can-binding") - - # Library dependencies (include updates automatically) - TARGET_LINK_LIBRARIES(${TARGET_NAME} - low-can - openxc-message-format - uds-c - isotp-c - bitfield-c - afb-helpers - ${link_libraries}) - -if(WITH_FEATURE_J1939) PROJECT_TARGET_ADD(default-signals) # Define targets @@ -68,4 +41,3 @@ PROJECT_TARGET_ADD(default-signals) bitfield-c afb-helpers ${link_libraries}) -endif()