Re: [CMake] Determining a library name at configure time

2015-09-22 Thread Nils Gladitz
On 22.09.2015 23:17, Bill Newcomb wrote: Disclaimer: The system I'm working on has its origins in pre cmake-2.6 days, and we'd probably make a lot of different decisions if we started anew today. We are using only the Unix Makefiles generator. Our system comprises a number of components, each

Re: [CMake] Determining a library name at configure time

2015-09-22 Thread Bill Newcomb
Disclaimer: The system I'm working on has its origins in pre cmake-2.6 days, and we'd probably make a lot of different decisions if we started anew today. We are using only the Unix Makefiles generator. Our system comprises a number of components, each of which is its own cmake project, and

Re: [CMake] Determining a library name at configure time

2015-09-22 Thread Brad King
On 09/18/2015 02:42 PM, Bill Newcomb wrote: > Suppose I add a library in my project: > > add_library(foo STATIC foo.c bar.c) > > Is there a way I can get the name of the generated library file at > configure time? On multi-configuration generators like VS and Xcode there may be more than one li

Re: [CMake] Determining a library name at configure time

2015-09-22 Thread Nils Gladitz
On 09/18/2015 11:42 AM, Bill Newcomb wrote: Suppose I add a library in my project: add_library(foo STATIC foo.c bar.c) Is there a way I can get the name of the generated library file at configure time? LIBRARY_OUTPUT_NAME and OUTPUT_NAME for the target do not seem to be set: Can you elabor

Re: [CMake] Determining a library name at configure time

2015-09-22 Thread Bill Newcomb
Anyone? Thanks, B. On 09/18/2015 11:42 AM, Bill Newcomb wrote: Suppose I add a library in my project: add_library(foo STATIC foo.c bar.c) Is there a way I can get the name of the generated library file at configure time? LIBRARY_OUTPUT_NAME and OUTPUT_NAME for the target do not seem to be

Re: [CMake] Does CMake 3.3.1 ignore CXX env variable on OSX10.10?

2015-09-22 Thread Nils Gladitz
On 22.09.2015 17:53, Pere Mato Vila wrote: Thanks Nils. This explains it. So, the value of CXX is not honored. I wouldn't go that far given that /usr/bin/clang++ and cmake call the same compiler. If you were to use a compiler in a custom installation prefix (without apple's tool in between) a

Re: [CMake] add_library(foo SHARED...) is not creating a PDB file

2015-09-22 Thread Tom Kacvinsky
On Tue, Sep 22, 2015 at 11:19 AM, Brad King wrote: > On 09/22/2015 11:16 AM, Tom Kacvinsky wrote: > > having two builds (debug and release) doesn't fit our workflow > > Try using the RelWithDebInfo configuration. > > Eeeek, that won't work because we are also using Ada and the plplot Ada module f

Re: [CMake] Does CMake 3.3.1 ignore CXX env variable on OSX10.10?

2015-09-22 Thread Pere Mato Vila
Thanks Nils. This explains it. So, the value of CXX is not honored. The problem we have, is that we record the compiler that we have used to build for runtime usage. If we make a binary distribution, this one will we used by clients that may have the compiler somewhere else. Cheers,

Re: [CMake] How to create a custom solution with Visual Studio 2010 generator?

2015-09-22 Thread Iosif Neitzke
Just as a point of information illustrating the opposite, we like using a CMakeList file for each target that contains a project() command where the name of the project is the name of the target. This is nice (for us) in that you get many .sln files generated from the larger source tree where you

Re: [CMake] add_library(foo SHARED...) is not creating a PDB file

2015-09-22 Thread Brad King
On 09/22/2015 11:16 AM, Tom Kacvinsky wrote: > having two builds (debug and release) doesn't fit our workflow Try using the RelWithDebInfo configuration. -Brad -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware

Re: [CMake] add_library(foo SHARED...) is not creating a PDB file

2015-09-22 Thread Tom Kacvinsky
On Tue, Sep 22, 2015 at 9:57 AM, Tom Kacvinsky wrote: > > > On Tue, Sep 22, 2015 at 9:41 AM, Brad King wrote: > >> On 09/22/2015 09:25 AM, Tom Kacvinsky wrote: >> > I am using cmake 2.8.11.2 on Windows 7 with Visual Studio 2008 >> [snip] >> > whether listing the object files or compiling from so

Re: [CMake] Does CMake 3.3.1 ignore CXX env variable on OSX10.10?

2015-09-22 Thread Nils Gladitz
On 09/22/2015 04:43 PM, Pere Mato Vila wrote: Hi Ben, Thanks, but in my case CXX is already a full path (/usr/bin/clang++). It is set like this export CXX=`which clang++` I do not understand how /usr/bin/clang++ gets converted to /Applications/Xcode.app/Contents/Developer/Toolchain

Re: [CMake] Does CMake 3.3.1 ignore CXX env variable on OSX10.10?

2015-09-22 Thread Pere Mato Vila
Hi Ben, Thanks, but in my case CXX is already a full path (/usr/bin/clang++). It is set like this export CXX=`which clang++` I do not understand how /usr/bin/clang++ gets converted to /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ Cheer

Re: [CMake] add_library(foo SHARED...) is not creating a PDB file

2015-09-22 Thread Tom Kacvinsky
On Tue, Sep 22, 2015 at 9:41 AM, Brad King wrote: > On 09/22/2015 09:25 AM, Tom Kacvinsky wrote: > > I am using cmake 2.8.11.2 on Windows 7 with Visual Studio 2008 > [snip] > > whether listing the object files or compiling from source, there is > > the cl option to create PDB debugging informatio

Re: [CMake] add_library(foo SHARED...) is not creating a PDB file

2015-09-22 Thread Brad King
On 09/22/2015 09:25 AM, Tom Kacvinsky wrote: > I am using cmake 2.8.11.2 on Windows 7 with Visual Studio 2008 [snip] > whether listing the object files or compiling from source, there is > the cl option to create PDB debugging information. Please try with CMake 3.1 or higher: http://www.cmake.or

Re: [CMake] add(library foo SHARED...) is not creating a PDB file

2015-09-22 Thread Tom Kacvinsky
On Mon, Sep 21, 2015 at 5:37 PM, Tom Kacvinsky wrote: > I am using cmake 2.8.11.2 on Windows 7 with Visual Studio 2008 > > This is the snipped of my CMakeLists.txt file > > add_library(commoncpp_objects > OBJECT > > ) > > add_library(commoncpp_static STATIC $) > add_dependencies

Re: [CMake] Does CMake 3.3.1 ignore CXX env variable on OSX10.10?

2015-09-22 Thread Ben Morgan
Hi Pere, > On 22 Sep 2015, at 11:18, Pere Mato Vila wrote: > > Hi, > > On previous versions I was setting the variables CC and CXX to force the > compiler. This is not working anymore. Is this intended? > Cheers, > I think it *is* honouring CC/CXX, but from CMake 3.2 (?) the full path to

[CMake] Does CMake 3.3.1 ignore CXX env variable on OSX10.10?

2015-09-22 Thread Pere Mato Vila
Hi, On previous versions I was setting the variables CC and CXX to force the compiler. This is not working anymore. Is this intended? Cheers, Pere ——— macitois13:test sftnight$ cmake --version cmake version 3.3.1 CMake suite maintained and supported by Kitware (kitware.com/cmake

Re: [CMake] How to create a custom solution with Visual Studio 2010 generator?

2015-09-22 Thread Hendrik Sattler
Hi, Am 22. September 2015 08:49:57 MESZ, schrieb "Golebiewski, Jakub" : >I have about 620 targets (VS projects) so when I open Main Project.sln >(with 620 projects) in VS it is impossible to work with. >Currently cmake produces .sln for each Sub Project but includes >dependencies from other proj

Re: [CMake] How to create a custom solution with Visual Studio 2010 generator?

2015-09-22 Thread J Decker
> I've tried running cmake independently for each subproject but I get errors > about unknown > Targets since every Sub Project depends on targets from 'earlier' one. > > I have about 620 targets (VS projects) so when I open Main Project.sln (with > 620 projects) in VS it is impossible to work wi