Re: [cmake-developers] How to use cmake::SetCacheArgs(...)?

2016-11-30 Thread Tobias Hunger
Am 30.11.2016 19:10 schrieb "Brad King" : > If you want to ensure a fresh one-step configuration then always remove > CMakeCache.txt and CMakeFiles/ before configuring. People are really attached to their configuration and get upset when creator runs CMake. Creator running CMake with arguments is

[cmake-developers] [ANNOUNCE] CMake 3.7.1 available for download

2016-11-30 Thread Robert Maynard
We are pleased to announce that CMake 3.7.1 is now available for download. Please use the latest release from our download page: https://cmake.org/download/ Thanks for your support! - Changes in 3.7.1 since 3.7.0: Ben Boe

Re: [cmake-developers] VS2015 /Zc:inline

2016-11-30 Thread Brad King
On 11/30/2016 02:13 PM, Serti Ayoub wrote: > Sorry, I think it's an error on VS2015 documentation. They pretend that, > I quote "By default, this option is off (*/Zc:inline-*)." However the > default value is */Zc:inline* Actually that documentation is for the MSVC compiler itself (`cl`), and it i

Re: [cmake-developers] VS2015 /Zc:inline

2016-11-30 Thread Brad King
On 11/30/2016 02:24 PM, Serti Ayoub wrote: > Ok, Thank you. I will check CMake 3.7.2 when released. I updated the MR to include the changes for the v140 toolset as well. You should be able to try the next nightly binary that appears here: * https://cmake.org/files/dev/?C=M;O=D -Brad -- Power

Re: [cmake-developers] VS2015 /Zc:inline

2016-11-30 Thread Serti Ayoub
Ok, Thank you. I will check CMake 3.7.2 when released. -Ayb 2016-11-30 19:17 GMT+00:00 Brad King : > On 11/30/2016 02:13 PM, Serti Ayoub wrote: > > Sorry, I think it's an error on VS2015 documentation. > > Okay. My previous response crossed

Re: [cmake-developers] VS2015 /Zc:inline

2016-11-30 Thread Brad King
On 11/30/2016 02:13 PM, Serti Ayoub wrote: > Sorry, I think it's an error on VS2015 documentation. Okay. My previous response crossed with this one. > Is the any way to remove this from CFlags, It seems that > > set_target_properties(${ProjectTarget} PROPERTIES COMPILE_FLAGS > "/Zc:inline

Re: [cmake-developers] VS2015 /Zc:inline

2016-11-30 Thread Brad King
On 11/30/2016 01:37 PM, Serti Ayoub wrote: > Here: > https://github.com/Kitware/CMake/blob/1b592b6458ce033b04ba2aa0ee4cf5ace0fd042c/Source/cmVS141CLFlagTable.h#L174 > > I think it need also an entry : { "RemoveUnreferencedCodeData", "Zc:inline-", > "", "false", 0} Yes, thanks: * https://gitla

Re: [cmake-developers] VS2015 /Zc:inline

2016-11-30 Thread Serti Ayoub
Sorry, I think it's an error on VS2015 documentation. They pretend that, I quote "By default, this option is off (*/Zc:inline-*)." However the default value is */Zc:inline* https://msdn.microsoft.com/en-us/library/dn642448.aspx Is the any way to remove this from CFlags, It seems that > set_targ

Re: [cmake-developers] VS2015 /Zc:inline

2016-11-30 Thread Serti Ayoub
Hello, Here: https://github.com/Kitware/CMake/blob/1b592b6458ce033b04ba2aa0ee4cf5ace0fd042c/Source/cmVS141CLFlagTable.h#L174 I think it need also an entry : { "RemoveUnreferencedCodeData", "Zc:inline-", "", "false", 0 } What do you think ? -Ayb 2016-11-30 18:12 GMT+00:00 Brad King : > On 11/30/

Re: [cmake-developers] VS2015 /Zc:inline

2016-11-30 Thread Brad King
On 11/30/2016 12:29 PM, Serti Ayoub wrote: > I'm using CMake 3.6 to generate VS2015 solution/projects. > I found that cmake automatically add /Zc:inline for all projects > configuration which make some of my symbols non-visible in release mode. I'm not aware of any code in CMake that does that.

Re: [cmake-developers] How to use cmake::SetCacheArgs(...)?

2016-11-30 Thread Brad King
On 11/30/2016 12:06 PM, Tobias Hunger wrote: > start over with a clean cache since the compiler changed (which is correct). > > After cmake::Configure(...) returns values some of the values are gone > again. E.g. CMAKE_BUILD_TYPE changed back from "Debug" to "". > > Is this expected behavior? Ye

[cmake-developers] VS2015 /Zc:inline

2016-11-30 Thread Serti Ayoub
Hello, I'm using CMake 3.6 to generate VS2015 solution/projects. I found that cmake automatically add /Zc:inline for all projects configuration which make some of my symbols non-visible in release mode. https://msdn.microsoft.com/en-us/library/dn642448(v=vs.120).aspx Is there any policy for that

[cmake-developers] How to use cmake::SetCacheArgs(...)?

2016-11-30 Thread Tobias Hunger
Hello CMake developers, I am trying to pass a number of arguments to cmake server-mode's configure command. The exact call is: [== "CMake Server" ==[ { "cacheArguments": [ "-DCMAKE_BUILD_TYPE:STRING=Debug", "-DCMAKE_CXX_COMPILER:STRING=/usr/lib/ccache/bin/g++", "-DCMAK