plugins: Remove J1939 condition in CMakeLists file 62/23462/3
authorFrederic Marec <frederic.marec@iot.bzh>
Wed, 18 Dec 2019 16:15:58 +0000 (17:15 +0100)
committerRomain Forlot <romain.forlot@iot.bzh>
Thu, 9 Jan 2020 15:25:36 +0000 (16:25 +0100)
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 <frederic.marec@iot.bzh>
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
plugins/CMakeLists.txt

index eba9542..82ca2ff 100755 (executable)
 # 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()