Thread library is not required when part of the run-time library
Use PROJECT_SOURCE/BINARY_DIR instead of CMAKE_SOURCE/BINARY_DIR