Threading: Scrubbed usage of threading in libraries

Removed include for pthreads from libraries where it appears NOT to be
used.  Added ${CMAKE_THREAD_LIBS_INIT} to CMakeLists.txt for libraries
which appear to require threading.

Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
Noel Eck
2018-01-22 14:39:46 -08:00
parent 7422ec937c
commit f97a62b055
8 changed files with 5 additions and 8 deletions

View File

@ -5,7 +5,7 @@ if (OPENZWAVE_FOUND)
set (module_hpp ${libname}.hpp ozwinterface.hpp ozwdump.hpp aeotecss6.hpp aeotecsdg2.hpp aeotecdw2e.hpp aeotecdsb09104.hpp tzemt400.hpp)
set (reqlibname "libopenzwave")
upm_module_init(${OPENZWAVE_LIBRARIES})
upm_module_init(${OPENZWAVE_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
target_include_directories(${libname} PUBLIC ${OPENZWAVE_INCLUDE_DIRS})
# openzwave/aes/aes.h has unknown pragmas, disable warning -Wunknown-pragmas