I was able to get around this error by modifying CMakeLists.txt to remove CXX from the project line. Not sure if this is a generic fix, so opening as an issue.
$ cmake ../
-- The CXX compiler identification is GNU 4.9.2
-- Check for working CXX compiler: /source/gcc/4.9.2/bin/c++
-- Check for working CXX compiler: /source/gcc/4.9.2/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.3")
-- Looking for include file pthread.h
CMake Error at /apps/source/cmake/3.0.2/share/cmake-3.0/Modules/CheckIncludeFiles.cmake:70 (try_compile):
Unknown extension ".c" for file
/<dir>/pizzly/build/CMakeFiles/CMakeTmp/CheckIncludeFiles.c
try_compile() works only for enabled languages. Currently these are:
CXX
See project() command to enable other languages.
Call Stack (most recent call first):
/apps/source/cmake/3.0.2/share/cmake-3.0/Modules/FindThreads.cmake:51 (CHECK_INCLUDE_FILES)
CMakeLists.txt:13 (find_package)
-- Looking for include file pthread.h - not found
CMake Error at /apps/source/cmake/3.0.2/share/cmake-3.0/Modules/FindPackageHandleStandardArgs.cmake:136 (message):
Could NOT find Threads (missing: Threads_FOUND)
Call Stack (most recent call first):
/apps/source/cmake/3.0.2/share/cmake-3.0/Modules/FindPackageHandleStandardArgs.cmake:343 (_FPHSA_FAILURE_MESSAGE)
/apps/source/cmake/3.0.2/share/cmake-3.0/Modules/FindThreads.cmake:178 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:13 (find_package)
-- Configuring incomplete, errors occurred!
See also "/data/rivera/sowmya/software/pizzly/build/CMakeFiles/CMakeOutput.log".
See also "/data/rivera/sowmya/software/pizzly/build/CMakeFiles/CMakeError.log".
I was able to get around this error by modifying CMakeLists.txt to remove CXX from the project line. Not sure if this is a generic fix, so opening as an issue.
Here is the error from the command line