Re: [CMake] cmake-2.8.4 on HP-UX runpath issues

2011-09-25 Thread Albert Chin
ng ./path/to/libfoo.sl on the link line, cmake would have to add > -L./path/to -lfoo -Wl,+cdp,./path/to:/install/prefix/lib. This > solution would only work for HP-UX 11 though, and we still support > customers on HP-UX 10.20. We'd prefer to have relinking after > install. Any help

[CMake] Relinking after installing a shared library?

2009-06-25 Thread Albert Chin
ocess creates liba and libb, with libb depending on liba, liba must be installed before libb is rebuilt/installed. -- albert chin (ch...@thewrittenword.com) ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitwar

[CMake] Setting RPATH to install lib when building bin/lib in project

2009-06-24 Thread Albert Chin
-rdynamic -L/opt/build/OpenJPEG_v1_3/bin -lopenjpeg -lm -Wl,-rpath,/opt/TWWfsw/libopenjpeg13/lib How do I replace -L/opt/build/OpenJPEG_v1_3/bin with -L/opt/TWWfsw/libopenjpeg13/lib? This is necessary on HP-UX to record the correct library path

Re: [CMake] Odd variable substitution problem with 2.4.7 on HP-UX 11.23/PA

2007-12-23 Thread Albert Chin
On Sun, Dec 23, 2007 at 09:34:48AM -0500, Bill Hoffman wrote: > Albert Chin wrote: > > [snip snip ] > > >How was the HP-UX binary on the cmake web site compiled? And on > >what version of HP-UX was it compiled? > > I think that is the same as this issue: > http://w

[CMake] Odd variable substitution problem with 2.4.7 on HP-UX 11.23/PA

2007-12-22 Thread Albert Chin
_INSTALL_PREFIX=/tmp/hello $ grep PLUGINDIR CMakeCache.txt PLUGINDIR:STRING=LIBDIR/plugins How was the HP-UX binary on the cmake web site compiled? And on what version of HP-UX was it compiled? -- albert chin ([EMAIL PROTECTED]) ___

[CMake] Getting CHECK_FUNCTION_EXISTS to search in external directories

2007-12-22 Thread Albert Chin
xt_Char in -lfreetype. But, how do I get CHECK_FUNCTION_EXISTS to add -L paths in the event -lfreetype is in a non-default directory (like /opt/freetype/lib)? -- albert chin ([EMAIL PROTECTED]) ___ CMake mailing list CMake@cmake.org http://www.cmake.o

Re: [CMake] 2.4.7 TarTest test failure on Tru64 UNIX 5.1

2007-09-20 Thread Albert Chin
On Thu, Sep 20, 2007 at 06:08:51PM -0500, Albert Chin wrote: > On Thu, Sep 20, 2007 at 05:56:43PM -0500, Albert Chin wrote: > > [ snip snip ... ] > > > > The problem is that dirname("tar_dir/") == NULL. However, with > > -D_XOPEN_SOURCE_EXTENDED, the

Re: [CMake] 2.4.7 TarTest test failure on Tru64 UNIX 5.1

2007-09-20 Thread Albert Chin
On Thu, Sep 20, 2007 at 05:56:43PM -0500, Albert Chin wrote: > [ snip snip ... ] > > The problem is that dirname("tar_dir/") == NULL. However, with > -D_XOPEN_SOURCE_EXTENDED, then dirname("tar_dir/") works. So, what > should we do? Is it possible t

[CMake] 2.4.7 TarTest test failure on Tru64 UNIX 5.1

2007-09-20 Thread Albert Chin
r if path points to an empty string. The problem is that dirname("tar_dir/") == NULL. However, with -D_XOPEN_SOURCE_EXTENDED, then dirname("tar_dir/") works. So, what should we do? Is it possible to build Utilities/cmtar/util.c with -D_XOPEN_SOURCE_EXTENDED on Tru64 UNIX only? I know I can

[CMake] 2.4.7 TutorialStep1/TutorialStep5 test failure on Tru64 UNIX 5.1

2007-09-20 Thread Albert Chin
Both TutorialStep1 and TutorialStep5 use sqrt() and assume -lm will be linked in. This doesn't work on Tru64 UNIX, where you need to explicitly link with -lm. The attached patch works. Is it correct? -- albert chin ([EMAIL PROTECTED]) Index: Tests/Tutorial/Step5/CMakeList

[CMake] 2.4.7 SetLang test failure on Tru64 UNIX 5.1

2007-09-20 Thread Albert Chin
The SetLang test fails on Tru64 UNIX because the C++ compiler invokes the C compiler to build Tests/SetLang/bar.c. The C++ compiler can be used if we force it with "-x cxx". How do I do this to get this test to pass? -- albert chin ([EMAIL

Re: [CMake] 2.4.7 testsuite failures on Tru64 UNIX 5.1

2007-09-20 Thread Albert Chin
On Thu, Sep 20, 2007 at 02:02:51PM -0500, Albert Chin wrote: > Built cmake-2.4.7 on Tru64 UNIX 5.1 with the following: > % cc -V > Compaq C V6.5-303 (dtk) on Compaq Tru64 UNIX V5.1 (Rev. 732) > Compiler Driver V6.5-302 (dtk) cc Driver > % cxx -V > Compaq C++ V

[CMake] 2.4.7 testsuite failures on Tru64 UNIX 5.1

2007-09-20 Thread Albert Chin
TryCompile configure of cmake failed CMake Error: The C++ compiler "CMAKE_CXX_COMPILER-NOTFOUND" is not able to compile a simple test program. ... Any idea how to resolve this? -- albert chin ([EMAIL PROTECTED]) ___ CMake mailing list

[CMake] Mirroring libtool shared library creation for AIX in cmake

2007-09-19 Thread Albert Chin
above catches them. I suppose -bexpall could also be used but I'm trying to avoid that catchall. -- albert chin ([EMAIL PROTECTED]) ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

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

2007-09-19 Thread Albert Chin
On Wed, Sep 19, 2007 at 12:24:20PM -0500, Albert Chin wrote: > 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 &qu

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

2007-09-19 Thread Albert Chin
th ".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? --