Re: [CMake] (no subject)

2014-01-02 Thread Matt Wilbur
On Thu, Jan 2, 2014 at 10:20 AM, Magnus Therning wrote: > On Thu, Jan 02, 2014 at 12:14:38AM -0500, Matt Wilbur wrote: > > With a bit of thought and source code reading, I sorted this out. > > Let me know if you'd like me to post my answer to my own question. > > Yes, please do. > > I'm sure you'v

Re: [CMake] How to locate clang-format

2014-01-02 Thread Michi Henning
On 2 Jan 2014, at 14:13 , Matt Wilbur wrote: > I am a CMake newbie (like, just this week), and this is only a partial > solution (I think I could probably flesh it out if we knew what the version > string would look like in all situations), but maybe something like this: find_package will alw

Re: [CMake] missing -rpath-link flag

2014-01-02 Thread Stephen Kelly
Clinton Stimpson wrote: > I have an example (attached) The example becomes more readable and easier to reason about by applying this patch: diff --git a/CMakeLists.txt b/CMakeLists.txt index 89a415d..15bfb46 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,5 @@ cmake_min

[CMake] missing -rpath-link flag

2014-01-02 Thread Clinton Stimpson
I have an example (attached) that gives a link error because an -rpath-link flag is missing. If I change the line add_library(static STATIC static.cpp) to add_library(static SHARED static.cpp) then the problem goes away. Also, if I change target_link_libraries(shared2 static) to target_link_li

[CMake] Issue with xcode and Target SDK 10.6

2014-01-02 Thread Thomas Diligent
Hi All, Please excuse me if this is not the right list for technical issues, I need to generate an xcode project with cmake (version 2.8.12.1) and set the Deployment Target SDK to 10.6 while working with Xcode 4 on 10.7. I found several posts on the web dealing with this kind of issues, follow

Re: [CMake] (no subject)

2014-01-02 Thread Magnus Therning
On Thu, Jan 02, 2014 at 12:14:38AM -0500, Matt Wilbur wrote: > With a bit of thought and source code reading, I sorted this out. > Let me know if you'd like me to post my answer to my own question. Yes, please do. I'm sure you've found yourself in the very irritating situation where you're lookin

[CMake] -lstdc++ being added to link options automatically

2014-01-02 Thread Tom Kacvinsky
Hi, I am using the PLPlot Ada support for cmake, and all is well, except for the following: For some reason, I see the addition of -lstdc++ to the link options for building Ada executables. the Ada code has zero dependencies on C++ object code, so this is not necessary. But I can't seem to find