Просмотр исходного кода

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 лет назад
Родитель
Сommit
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)