[CMake] Modules/Platform/HP-UX.cmake on HP-UX/IA64

Albert Chin cmake at mlists.thewrittenword.com
Wed Sep 19 13:24:20 EDT 2007


Modules/Platform/HP-UX.cmake has:
  SET(CMAKE_SHARED_LIBRARY_SUFFIX ".sl")
  SET(CMAKE_FIND_LIBRARY_SUFFIXES ".sl" ".so" ".a")

On HP-UX/PA, shared libraries end in ".sl". On HP-UX/IA, they can end
in ".sl" or ".so", with ".so" being preferred. So, for HP-UX/IA, the
above should be:
  SET(CMAKE_SHARED_LIBRARY_SUFFIX ".so")
  SET(CMAKE_FIND_LIBRARY_SUFFIXES ".so" ".sl" ".a")

Is it possible to have one Modules/Platform/HP-UX.cmake with both
changes depending on PA/IA?

-- 
albert chin (china at thewrittenword.com)


More information about the CMake mailing list