Re: [CMake] works when I build using XCode, but not with CMake makefile

2016-09-07 Thread Peter Steinbach
with XCode, but not with > CMake. > > > but when I run the make it always says it is ignoring these (e.g. "warning: > argument unused during compilation: '-L/Applications/MAMP/Library/lib'"). > > Thanks again for you help. > Aaron > > > > > > On

Re: [CMake] works when I build using XCode, but not with CMake makefile

2016-09-06 Thread Peter Steinbach
Aaron, it's about the way that you compile your binary and link libmysqlclient into it. I guess (@all: please correct me if I am wrong) as I don't know how you use cmake to build your libraries/binaries, that you don't set the rpath of libmysqlclient inside your binary. Doing so will ensure

Re: [CMake] works when I build using XCode, but not with CMake makefile

2016-09-06 Thread Peter Steinbach
Hi Mr. Cotton ;), is the location of libmysqlclient* available through DYLD_LIBRARY_PATH at runtime of your code? Best, P On 09/06/2016 10:56 AM, Cotton Candy wrote: Hi, I have a project that I originally coded up using XCode. It builds and runs just fine using XCode. Now I have tried to set

Re: [CMake] CUDA: COMPILE_DEFINITIONS not picked up

2016-08-30 Thread Peter Steinbach
, for instance). Most of the library is regular C++ and there the COMPILE_DEFINITIONS propagates to all source files. Now I want it to propagate to any CUDA .cu files too. What would it take to FindCUDA respect COMPILE_DEFINITIONS too? Best, Karl On 2016-08-26 09:41, Peter Steinbach wrote: Hey Karl

Re: [CMake] How to add -fPIC to a static library?

2016-08-29 Thread Peter Steinbach
AFAIK, there is also a global CMAKE_POSITION_INDEPENDENT_CODE that is used to derive the target-specific value of POSITION_INDEPENDENT_CODE. If you wanna use fPIC for all your targets, you may wanna consider set(CMAKE_POSITION_INDEPENDENT_CODE ON). Best, P -- Powered by www.kitware.com

Re: [CMake] CUDA: COMPILE_DEFINITIONS not picked up

2016-08-26 Thread Peter Steinbach
Hey Karl, just gave it another shot ... so I can confirm what you saw with cmake 3.3 (btw, what cmake version did you use?). I should try a more recent one to make sure as well. anyhow, there 2 global workarounds that you have at your disposal: 1) set(CUDA_NVCC_FLAGS "-Dfoo") needs to be

Re: [CMake] CUDA: COMPILE_DEFINITIONS not picked up

2016-08-26 Thread Peter Steinbach
Hi Karl, just a quick question, why not use add_definitions? Did you look into it or is directory-wide preprocessor defines a nogo in your use case? Best, Peter -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Re: [CMake] Fwd: Re: cmake needs 2 runs to find boost

2015-11-06 Thread Peter Steinbach
m occurred in the first place. Once thing is for sure, the FindBoost module acutally triggered BOOST_FOUND=1! But finding the actual libraries of boost failed. Best, Peter On Thursday, November 05, 2015 05:29:16 PM Peter Steinbach wrote: > -- Forwarded Message -- > > Subject

Re: [CMake] cmake needs 2 runs to find boost

2015-11-05 Thread Peter Steinbach
I guess, nobody has a hint on what to look at or what to try? Best, Peter On Tuesday, November 03, 2015 02:10:54 PM Peter Steinbach wrote: > Hi to all, > > I tested this with cmake 3.2.2 and 3.3.2 and still get the same problem. > I'd like to use boost with gcc on windows 7 64bit.

Re: [CMake] cmake needs 2 runs to find boost

2015-11-05 Thread Peter Steinbach
e > but boost-config.cmake, which it now finds in the cached environment of > the first run? > > This assumes of course that you built boost w/ CMake and not bjam... > > Cheers, >Benedikt > > On 03.11.2015 14:10, Peter Steinbach wrote: > > Hi to all, > >

[CMake] Fwd: Re: cmake needs 2 runs to find boost

2015-11-05 Thread Peter Steinbach
-- Forwarded Message -- Subject: Re: [CMake] cmake needs 2 runs to find boost Date: Thursday, November 05, 2015, 04:41:51 PM From: Andreas Naumann <andreas-naum...@gmx.net> To: Peter Steinbach <steinb...@scionics.de> Hey Peter, It is not a solution, but I would set

Re: [CMake] cmake needs 2 runs to find boost

2015-11-05 Thread Peter Steinbach
Any ideas? Best, Peter On Thursday, November 05, 2015 01:41:33 PM Peter Steinbach wrote: > Hi Benedikt, > > interesting thought, however I wonder why cmake is then capable of deducing > the right boost version and include path. Just inside the first error > message, I see: > &

[CMake] cmake needs 2 runs to find boost

2015-11-03 Thread Peter Steinbach
Hi to all, I tested this with cmake 3.2.2 and 3.3.2 and still get the same problem. I'd like to use boost with gcc on windows 7 64bit. I installed boost and gcc with msys2 as I cannot use MSVC for the actual project I am looking into for this. the funny thing, if I use the attached