[CMake] hpux (cma vs. pthreads)
George Neill
georgen at neillnet.com
Wed Aug 13 22:03:38 EDT 2008
Hi All,
I am trying to compile a multi-threaded app (using pthreads) on hpux 11.23 IA
-- CMAKE_SYSTEM ...............................HP-UX-B.11.23
-- CMAKE_SYSTEM_NAME...........................HP-UX
-- CMAKE_SYSTEM_VERSION .......................B.11.23
-- CMAKE_C_COMPILER: ........................../opt/aCC/bin/cc
-- CMAKE_CXX_COMPILER: ......................../opt/aCC/bin/aCC
It seems as though FindThreads.cmake is not complete. I do _not_ want
to link with the cma thread library
(http://docs.hp.com/en/5187-0172/ch10s03.html). There doesn't seem to
be an obvious way to tell FindThreads.cmake this. I am thinking it
should prefer -lpthread over -lcma, if it exists. Anyone have
suggestions on the best way to change FindThreads.cmake to handle
this?
TIA,
George.
More information about the CMake
mailing list