[CMake] CMake adds "lib" prefix to library. Bug?

2010-11-23 Thread Adam J Richardson
d my FindODBC.cmake with "message(STATUS ${blah})" instructions and it returns "odbc32", which is correct. So my question is: why is CMake adding an extra "lib"? I can work around it for now, but I'd like to solve this one properly. Thanks, Adam J Richardson =

Re: [CMake] Extra include/lib paths - multiple entries

2010-11-18 Thread Adam J Richardson
On Wed, 17 Nov 2010 13:12:42 +0100 Yngve Inntjore Levinsen wrote: > On Wednesday 17 November 2010 12:30:06 Adam J Richardson wrote: > > Is this a correct specification for multiple include/lib paths in > > environment variables? If not, what should I use instead? Sometimes >

[CMake] Extra include/lib paths - multiple entries

2010-11-17 Thread Adam J Richardson
:/Compilers/MinGW/lib Thanks, Adam J Richardson signature.asc Description: PGP signature ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check

Re: [CMake] fun with Boost - swap absolute library path for -L and -l?

2010-11-11 Thread Adam J Richardson
st error in the build log: "undefined reference to `_imp___blablabla'". The "_imp___" part gives it away. The fix is to define BOOST_THREAD_USE_LIB in your CMakeLists.txt: set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DBOOST_THREAD_USE_LIB=1") I haven't tested it, but it builds

Re: [CMake] fun with Boost - swap absolute library path for -L and -l?

2010-11-11 Thread Adam J Richardson
low) but it's kind of ugly. > Adam J Richardson writes: > > (That is, if I manually separate > > "C:\Compilers\Libs\libboost_thread-mgw44-mt-1_44.a" into > > "-LC:\Compilers\Libs -lboost_thread-mgw44-mt-1_44".) > > > > Is there a way to

Re: [CMake] Bug fix requests for the *next* release of CMake...

2010-11-11 Thread Adam J Richardson
> > If I have ignored one of your non-bug-issue points from a reply to > > this thread, it's because it was not a bug number. If you still have > > an issue, open a bug and reply here with its number or start a new > > thread!! Argh. Fine. Here's a bug number: #0011445 > Let me know if you or som

[CMake] Bug fix requests for the *next* release of CMake...

2010-11-05 Thread Adam J Richardson
nd include Mateusz Loskot's FindODBC.cmake in the release? Thanks, Adam J Richardson -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkzT3GwACgkQSUH6dLOqvqlyOQCfaC2+BL+jkULzetoh3bduWoHU tmMAniddpSiMW4KpeRjpS0me9C+3R

[CMake] Linking Boost on Linux on 64bit host and 32bit target

2010-11-04 Thread Adam J Richardson
program_options ) You don't set ADDITIONAL_VERSIONS. That's probably not the problem. IIRC, it's: set(Boost_ADDITIONAL_VERSIONS "1.44 1.44.0") ... if you wanted to try it anyway. Regards, Adam J Richardson -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/L

Re: [CMake] FindODBC.cmake

2010-11-02 Thread Adam J Richardson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, 01 Nov 2010 20:04:44 + Mateusz Loskot wrote: > > Thanks Mateusz, that's great! I only needed to add "odbc32" to the > > list of library names (MinGW's OBDC implementation is in > > libodbc32.a). > > I'm glad it helped and thanks for the f

[CMake] fun with Boost - swap absolute library path for -L and -l?

2010-11-01 Thread Adam J Richardson
mgw44-mt-1_44".) Is there a way to have CMake do this by itself and not use absolute paths? I've tried setting CMP0003 to OLD but it doesn't seem to do that. Thanks, Adam J Richardson -BEGIN PGP SIGNATURE- Version: GnuPG v1

Re: [CMake] FindODBC.cmake

2010-11-01 Thread Adam J Richardson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, 01 Nov 2010 14:25:24 + "Mateusz Loskot" wrote: > Hi, > You may find the one in SOCI repo useful > http://soci.git.sf.net/ > > And go to src/cmake/modules Thanks Mateusz, that's great! I only needed to add "odbc32" to the list of library

[CMake] FindODBC.cmake

2010-11-01 Thread Adam J Richardson
ce they're compatible with each other. Thanks, Adam J Richardson -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkzOqQkACgkQSUH6dLOqvqkgrwCfR9lrKOZQOwVaqWC4tWJnFDd4 jlAAn0CE5RZy+3sLWFIkLdGv42jdHaR1 =0QA1 -EN

Re: [CMake] CMake hangs on new install

2010-10-28 Thread Adam J Richardson
> cmake -DCMAKE_TOOLCHAIN_FILE:string="%~dp0\zosport.cmake" -G"Unix > Makefiles" .\ You are building on Windows, yes? Whenever I try to use ".\" in a command prompt, batch file or command file on Windows, it does horrible things. I have to substitute a full or partial pa

Re: [CMake] config dependent defines

2010-10-18 Thread Adam J Richardson
CE option they will hate him? Regards, Adam J Richardson -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAky8Cr8ACgkQSUH6dLOqvqnYUgCfbZB1KtewDVQ/ZMdPeeYDHD6V KFoAn3M3nETZeJlnW8yLAYt4xq6Lq7sO =ByUi -END PGP SIGNATURE- __