Maratyszcza / pthreadpool

Portable (POSIX/Windows/Emscripten) thread pool for C/C++
BSD 2-Clause "Simplified" License
342 stars 132 forks source link

CMake: don't enable CXX unless building tests/benchmarks #24

Closed jameshilliard closed 1 year ago

jameshilliard commented 1 year ago

We only need CXX support when building tests/benchmarks.

Fixes:

CMake Error at CMakeLists.txt:4 (PROJECT):
  No CMAKE_CXX_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.
jameshilliard commented 1 year ago

@Maratyszcza This look good to merge?