瀏覽代碼

extdep: Removed add_dependencies call from CMakeLists

Small change to get rid of a warning in newer cmake versions.

Versions of cmake (>= 3.0) throw a warning on the add_dependecy
method for non-existant dependencies (add_dependency call before
target_link_libraries call).

Removed the call to add_dependency since target_link_libraries should
provide the same functionality for ozw and modbus dependencies.

Signed-off-by: Noel Eck <noel.eck@intel.com>
Noel Eck 8 年之前
父節點
當前提交
edcaed90e6
共有 4 個文件被更改,包括 0 次插入4 次删除
  1. 0
    1
      src/h803x/CMakeLists.txt
  2. 0
    1
      src/hwxpxx/CMakeLists.txt
  3. 0
    1
      src/ozw/CMakeLists.txt
  4. 0
    1
      src/t3311/CMakeLists.txt

+ 0
- 1
src/h803x/CMakeLists.txt 查看文件

@@ -8,7 +8,6 @@ if (MODBUS_FOUND)
8 8
   set (reqlibname "libmodbus")
9 9
   include_directories(${MODBUS_INCLUDE_DIRS})
10 10
   upm_module_init()
11
-  add_dependencies(${libname} ${MODBUS_LIBRARIES})
12 11
   target_link_libraries(${libname} ${MODBUS_LIBRARIES})
13 12
   if (BUILDSWIG)
14 13
     if (BUILDSWIGNODE)

+ 0
- 1
src/hwxpxx/CMakeLists.txt 查看文件

@@ -8,7 +8,6 @@ if (MODBUS_FOUND)
8 8
   set (reqlibname "libmodbus")
9 9
   include_directories(${MODBUS_INCLUDE_DIRS})
10 10
   upm_module_init()
11
-  add_dependencies(${libname} ${MODBUS_LIBRARIES})
12 11
   target_link_libraries(${libname} ${MODBUS_LIBRARIES})
13 12
   if (BUILDSWIG)
14 13
     if (BUILDSWIGNODE)

+ 0
- 1
src/ozw/CMakeLists.txt 查看文件

@@ -8,7 +8,6 @@ if (OPENZWAVE_FOUND)
8 8
   set (reqlibname "libopenzwave")
9 9
   include_directories(${OPENZWAVE_INCLUDE_DIRS})
10 10
   upm_module_init()
11
-  add_dependencies(${libname} ${OPENZWAVE_LIBRARIES})
12 11
   target_link_libraries(${libname} ${OPENZWAVE_LIBRARIES})
13 12
   if (BUILDSWIG)
14 13
     if (BUILDSWIGNODE)

+ 0
- 1
src/t3311/CMakeLists.txt 查看文件

@@ -8,7 +8,6 @@ if (MODBUS_FOUND)
8 8
   set (reqlibname "libmodbus")
9 9
   include_directories(${MODBUS_INCLUDE_DIRS})
10 10
   upm_module_init()
11
-  add_dependencies(${libname} ${MODBUS_LIBRARIES})
12 11
   target_link_libraries(${libname} ${MODBUS_LIBRARIES})
13 12
   if (BUILDSWIG)
14 13
     if (BUILDSWIGNODE)