nadjieb / cpp-mjpeg-streamer

C++ MJPEG over HTTP Library
MIT License
139 stars 39 forks source link

Unable to build without unit tests #8

Closed alexkutsan closed 4 years ago

alexkutsan commented 4 years ago

Build with no unit tests does not work

developer@alex-WorkStation:~/build$ rm * -rf
developer@alex-WorkStation:~/build$ cmake -DBUILD_TESTING=OFF ../cpp-mjpeg-streamer/
-- The CXX compiler identification is GNU 9.3.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Using the single-header code from /home/developer/cpp-mjpeg-streamer/single_include/
-- Configuring done
-- Generating done
-- Build files have been written to: /home/developer/build
developer@alex-WorkStation:~/build$ ls
CMakeCache.txt  CMakeFiles  cmake_install.cmake  Makefile  nadjieb_mjpeg_streamerConfig.cmake  nadjieb_mjpeg_streamerConfigVersion.cmake  nadjieb_mjpeg_streamer.pc  nadjieb_mjpeg_streamerTargets.cmake
developer@alex-WorkStation:~/build$ make
developer@alex-WorkStation:~/build$ 

Make has no effect

kamalnadjieb commented 4 years ago

It didn't have effect when you run make command because it's only header file.