From b6bc89e63ee24c4e5ec1559d7390da90201ff9cd Mon Sep 17 00:00:00 2001 From: Frederic Marec Date: Wed, 18 Dec 2019 17:15:58 +0100 Subject: [PATCH 1/1] 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 --- plugins/CMakeLists.txt | 28 ---------------------------- 1 file changed, 28 deletions(-) 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() -- 2.16.6