[CMake] CMake Ctest script mode check for pthreads even if CMAKE_USE_PTHREADS:BOOL=OFF
Rashad M
mohammedrashadkm at gmail.com
Wed Jun 4 10:49:15 EDT 2014
Hi,
I have been trying a cmake script file to have a dashboard submission on
Windows 7 wiht MinGW gcc4.8 compiler.
CMAKE_USE_PTHREADS:BOOL=OFF
CMAKE_USE_WIN32_THREADS:BOOL=ON
I had setup all other necessay variables for dashboard submission. I
followed the cmake script from here[1].
Only change was in generate which is "MinGW Makefiles" for me. But I also
tried with "MSYS Makefiles" as in [1]
I am attaching the full CMakeError and CMakeOutput below.
Long error log short:
1. check for heads pthread.h. Solved by installing mingw32-pthreads-win32
package
2. ctest check for pthreads library and reports undefind ref to
__imp_pthred_create ...
3. also checks for sys/ptrcl.h header which doesnot exists
No problem exists when running just cmake from the build directory. But
the values are set from cmake gui.
[1] http://open.cdash.org/viewNotes.php?buildid=3357007
--
Regards,
Rashad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20140604/2628784f/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CMakeError.log
Type: text/x-log
Size: 13384 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20140604/2628784f/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CMakeOutput.log
Type: text/x-log
Size: 76227 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20140604/2628784f/attachment-0003.bin>
More information about the CMake
mailing list