Re: [cmake-developers] Embracing Modern CMake Video and Slides

2017-11-07 Thread Wesley Smith
Thanks for sharing!

On Sun, Nov 5, 2017 at 10:09 AM, Stephen Kelly  wrote:

> Hi,
>
> I know I'm not active here at the moment, but I thought this post might be
> interesting for some here:
>
>  https://steveire.wordpress.com/2017/11/05/embracing-modern-cmake/
>
> Thanks,
>
> Steve.
>
>
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake-developers
>
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Re: [cmake-developers] Make it easier for beginners

2017-10-25 Thread Wesley Smith
I agree that if you do a search for how to setup a project with cmake, it's
hard to know what's best practice.  As cmake has evolved, the best practice
has changed and many old style techniques still return toward the top of
search results.  For me, the best resources have been:

http://preshing.com/20170522/learn-cmakes-scripting-language-in-15-minutes/
https://www.youtube.com/watch?v=bsXLMQ6WgIk

I still don't understand the scoped syntax in Daniel Pfeifer's talk (e.g.
boost::boost).  And CPack was really opaque to me until I bought the cmake
book.  I wish there were better tutorials on CPack and on how to write
cmake scripts that play well as dependencies on other projects using cmake.

wes


On Sun, Oct 22, 2017 at 12:08 PM, Bill Hoffman 
wrote:

> On 10/21/2017 10:56 AM, Lectem wrote:
>
>> _Question :_ Would it possible to delete the wiki, or reset/reopen it ?
>>
>> _Reason:_ The wiki is full of old stuff, but we can't register to edit
>> stuff. Still, people willing to learn will end up visiting it, thinking it
>> gives good advice. "How could it not ? It's the official wiki". At the very
>> least I wish we could add a big red message stating it is outdated and not
>> updated anymore.
>>
>> The wiki is still open.  If people want to edit they have to send an
> email and let us know what they want to do.  It was too hard to keep the
> spam off of it otherwise.  So, send me an email off list and I can get you
> setup with a wiki account.
>
> -Bill
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensou
> rce/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake-developers
>
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Re: [cmake-developers] C++ IDE

2017-08-09 Thread Wesley Smith
I have been really impressed with VSCode .

On Sun, Aug 6, 2017 at 1:52 PM, Ivam Pretti  wrote:

> Can you recomend an IDE to code in C/C++?
>
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake-developers
>
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Re: [cmake-developers] VS Project Settings User Defines

2017-03-23 Thread Wesley Smith
The only reference I've been able to find to this property is via the
VisualStudio SDK https://msdn.microsoft.com/en-us/library/hh710870.aspx .
It doesn't seem to be part of any compiler configuration.  The conclusion
here being that none of the flags in the VS tables map to this XML tag.  I
wonder if the solution here is to add something like the VS_GLOBAL_ prefix
or somehow attach custom flags to a target config e.g. attach a flag to the
Debug|x64 config of target X.


  CustomValue


On Thu, Mar 23, 2017 at 7:51 AM, Brad King <brad.k...@kitware.com> wrote:

> On 03/23/2017 10:41 AM, Wesley Smith wrote:
> > Specifically, I'm trying to add these tags:
> >
> > ..\..\add-in.ruleset
> > true
> >
> > per-config tags are added via Flag arguments,
>
> What are the corresponding command-line flags that these add?
> If they appear in `Source/cmVS*CLFlagTable.h` then adding the
> flags in `CMAKE_C_FLAGS` or other places we support flags will
> reverse-map into the vcxproj file settings.
>
> -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 offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

[cmake-developers] VS Project Settings User Defines

2017-03-23 Thread Wesley Smith
Hi,
I'm trying to figure out if it's possible to add user defined XML entries
to the project config section of a visual studio file.  From what I can see
it's not, but maybe someone here know of a code path I haven't come across.

Specifically, I'm trying to add these tags:

..\..\add-in.ruleset
true

These are added on a per-config basis.  From what I can see, per-config
tags are added via Flag arguments, which are hard coded into the source.
Basically, I need to get some data into the FlagMap written by

void cmVisualStudioGeneratorOptions::OutputFlagMap(std::ostream& fout,
   const char* indent)

The tags written in its calling function
(cmVisualStudio10TargetGenerator::WriteMSToolConfigurationValuesManaged)
are also hard coded, so I believe this is the only place possible for
dynamically generating tags.


Any ideas?

thanks!
wes
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Re: [cmake-developers] Debugging issues with enable_language(CSHARP)

2017-03-22 Thread Wesley Smith
So the answer is enable_language(CSHARP) should be enable_language(CSharp).
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Re: [cmake-developers] Debugging issues with enable_language(CSHARP)

2017-03-22 Thread Wesley Smith
Thanks David,
I'll have a look at that.  Here's my CMake script

```
cmake_minimum_required(VERSION 3.8.0)
project(add-in)

enable_language(CSHARP)
```

On Wed, Mar 22, 2017 at 9:58 AM, David Cole <dlrd...@aol.com> wrote:

> Have you looked into
> https://github.com/Kitware/CMake/blob/master/Modules/
> CMakeDetermineCSharpCompiler.cmake
> ?
>
> Send steps to reproduce the problem you're seeing... Maybe somebody
> else here has encountered the same thing and worked through it
> already.
>
>
> HTH,
> David C.
>
>
>
> On Wed, Mar 22, 2017 at 12:33 PM, Wesley Smith <wesley.h...@gmail.com>
> wrote:
> > Hi,
> > I'm trying to diagnose why enable_language(CSHARP) isn't working for me
> in
> > the RC candidate. I've built CMake from source and am trying to step
> through
> > the code, but am coming up against the fact that this is an enormous
> project
> > and I don't quite know where to look.
> >
> > The new C# support is something I want to use on an upcoming project, so
> I'd
> > like to help solve any issues with it
> >
> > Here's where I'm at:
> >
> >
> > * I'm stepping through cmGlobalGenerator.xx in the EnableLanguage
> function.
> > When the only language is CSHARP, I'm erroring out where it attempts to
> get
> > the definition of CMAKE_SHARP_COMPILER
> >
> > * In CMakeErrr.log, I see:
> > The CSharp compiler identification could not be found in
> > "C:/Users/wes/Documents/GitHub/add-in/build_/CMakeFiles/3.8.20170317-
> g45851/CompilerIdCSharp/CompilerIdCSharp.csproj"
> >
> > When I compile and run this project by hand, I'm seeing
> >
> > InfoCompiler
> > "INFO:compiler[Microsoft Visual Studio]"
> > InfoPlatform
> > "INFO:platform[Windows]"
> > InfoArchitecture
> > "INFO:arch[x64]"
> > InfoCompilerVersion
> > "INFO:compiler_version[2017]"
> >
> > printed from this code:
> >
> > static void Main(string[] args)
> > {
> > // we have to print the lines to make sure
> > // the compiler does not optimize them away ...
> > System.Console.WriteLine(InfoCompiler);
> > System.Console.WriteLine(InfoPlatform);
> > System.Console.WriteLine(InfoArchitecture);
> > System.Console.WriteLine(InfoCompilerVersion);
> > }
> >
> >
> > It all looks good to me.  What I haven't been able to find is where the
> > project is compiled and run from within CMake and the console stdout
> read in
> > order to verify the C# compiler settings.
> >
> >
> > thanks,
> > wes
> >
> >
> > --
> >
> > Powered by www.kitware.com
> >
> > Please keep messages on-topic and check the CMake FAQ at:
> > http://www.cmake.org/Wiki/CMake_FAQ
> >
> > Kitware offers various services to support the CMake community. For more
> > information on each offering, please visit:
> >
> > CMake Support: http://cmake.org/cmake/help/support.html
> > CMake Consulting: http://cmake.org/cmake/help/consulting.html
> > CMake Training Courses: http://cmake.org/cmake/help/training.html
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/cmake-developers
>
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers