Re: [CMake] Visual Studio .sln post generate modifications?

2015-11-27 Thread Petr Kmoch
Hi.

I don't know how exactly the Deploy checkbox value is stored inside the
.sln file, but CMake has built-in ways of adding arbitrary sections and
contents to the .sln file; see directory properties
VS_GLOBAL_SECTION_PRE_ (
https://cmake.org/cmake/help/latest/prop_dir/VS_GLOBAL_SECTION_PRE_section.html
) and VS_GLOBAL_SECTION_POST_ (
https://cmake.org/cmake/help/latest/prop_dir/VS_GLOBAL_SECTION_POST_section.html
). Perhaps you could use them to store the information in the .sln?

Petr

On Fri, Nov 27, 2015 at 4:24 PM, Tilman Skobowsky 
wrote:

> Hi,
>
> we currently use CMake 3.3.x (x >= 2) on a C++ source code with Windows
> target only.
> In our company we're exclusively using Visual Studio (Version 2015 right
> now).
>
> Since we're using remote debugging we have the following problem:
>
> In order to set up Remote Debugging with VS, you have to edit the settings
> in the "Debugging" pane of the target prefs (a.k.a add_executable()
> target). These debugger settings are stored in a ".vcxproj.user" file,
> which is perfect, because these files don't get touched by the cmake
> generator.
>
> However, in order to automatically deploy the target, one also has to set
> the "Deploy" checkmark in the "Configuration Manager" settings.
> Unfortunately, this setting is NOT saved in a user speciffic file. Instead
> it is saved in the main projects ".sln" file. (Thanks MS...).
>
> I just downloaded the 'cmake' sources to check how the section where this
> information goes is generated. For WinCE builds there is already code that
> emits the right information into the solution file.
>
> Now the best solution (for me) would be to add a target property that
> controls emiting this options. But I guess, this might not be an option
> that could be returned to the 'cmake' source tree, although I'd be willing
> to give it a try. (some info/references/pointers on how to do this are
> welcome)
>
> Second best solution would be a script or mechanism that can post process
> the SLN file after it has been generated by cmake but FROM WITHIN the
> configure/generate process. Is that possible in any way?
>
> Of course I know, that I could write some script in order to tweak the
> solution file after cmake is called, but I'd like to avoid this. I already
> made lot of use of additional options to shown up within CMakeGUI (which is
> really cool) and I'd like to be able to set some  "ENABLE_REMOTE_DEBUGGING"
> switch of some sort so that this can be configured in one place.
>
> TIA
> skybow
>
>
>
>
>
> --
>
> 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
>
-- 

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

[Cmake-commits] CMake branch, master, updated. v3.4.0-606-g61f677e

2015-11-27 Thread Kitware Robot
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, master has been updated
   via  61f677edf8bd1f24ee4db39984f7a18a92ad533e (commit)
  from  74a6d43ea04cd0a2813076feb04f623a52c4928d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=61f677edf8bd1f24ee4db39984f7a18a92ad533e
commit 61f677edf8bd1f24ee4db39984f7a18a92ad533e
Author: Kitware Robot <kwro...@kitware.com>
AuthorDate: Sat Nov 28 00:01:06 2015 -0500
Commit: Kitware Robot <kwro...@kitware.com>
CommitDate: Sat Nov 28 00:01:06 2015 -0500

CMake Nightly Date Stamp

diff --git a/Source/CMakeVersion.cmake b/Source/CMakeVersion.cmake
index 8f8cfa7..ed61ee1 100644
--- a/Source/CMakeVersion.cmake
+++ b/Source/CMakeVersion.cmake
@@ -1,5 +1,5 @@
 # CMake version number components.
 set(CMake_VERSION_MAJOR 3)
 set(CMake_VERSION_MINOR 4)
-set(CMake_VERSION_PATCH 20151127)
+set(CMake_VERSION_PATCH 20151128)
 #set(CMake_VERSION_RC 1)

---

Summary of changes:
 Source/CMakeVersion.cmake |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits


Re: [CMake] MSVC version string

2015-11-27 Thread Guillaume Dumont
You can also emulate a map like so:

set(boost_toolset_1800 "msvc-12.0")
set(boost_toolset_1900 "msvc-14.0")
set(boost_toolset ${boost_toolset_${MSVC_VERSION}})

It's probably best to add some check on MSVC_VERSION since the set
statement will silently set the boost_toolset variable to nothing if your
"map" is missing the entry for a particular MSVC_VERSION.

HTH


On Thu, Nov 26, 2015 at 12:24 PM, Scott Aron Bloom 
wrote:

> I wound up doing exactly what you started….
>
>
>
> *From:* CMake [mailto:cmake-boun...@cmake.org] *On Behalf Of *Dzenan Zukic
> *Sent:* Thursday, November 26, 2015 8:48 AM
> *To:* CMake users
> *Subject:* [CMake] MSVC version string
>
>
>
> Hi everybody,
>
>
>
> is there a way to get MSVC's version string (for the current generator) in
> form 12.0 for VS2013 as per this page
> ? Or is my
> best bet big if/else of the style:
>
>
>
> if (MSVC_VERSION EQUAL 1800)
>
> set(boost_toolset "msvc-12.0")
>
> elseif(MSVC_VERSION EQUAL 1900)
>
> set(boost_toolset "msvc-14.0")
>
> ...
>
>
>
> Regards,
>
> Dženan Zukić, R Engineer, Kitware (Carrboro, N.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
>



-- 
Guillaume Dumont
=
dumont.guilla...@gmail.com
-- 

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

[CMake] Visual Studio .sln post generate modifications?

2015-11-27 Thread Tilman Skobowsky

Hi,

we currently use CMake 3.3.x (x >= 2) on a C++ source code with  
Windows target only.
In our company we're exclusively using Visual Studio (Version 2015  
right now).


Since we're using remote debugging we have the following problem:

In order to set up Remote Debugging with VS, you have to edit the  
settings in the "Debugging" pane of the target prefs (a.k.a  
add_executable() target). These debugger settings are stored in a  
".vcxproj.user" file, which is perfect, because these files don't get  
touched by the cmake generator.


However, in order to automatically deploy the target, one also has to  
set the "Deploy" checkmark in the "Configuration Manager" settings.  
Unfortunately, this setting is NOT saved in a user speciffic file.  
Instead it is saved in the main projects ".sln" file. (Thanks MS...).


I just downloaded the 'cmake' sources to check how the section where  
this information goes is generated. For WinCE builds there is already  
code that emits the right information into the solution file.


Now the best solution (for me) would be to add a target property that  
controls emiting this options. But I guess, this might not be an  
option that could be returned to the 'cmake' source tree, although  
I'd be willing to give it a try. (some info/references/pointers on  
how to do this are welcome)


Second best solution would be a script or mechanism that can post  
process the SLN file after it has been generated by cmake but FROM  
WITHIN the configure/generate process. Is that possible in any way?


Of course I know, that I could write some script in order to tweak  
the solution file after cmake is called, but I'd like to avoid this.  
I already made lot of use of additional options to shown up within  
CMakeGUI (which is really cool) and I'd like to be able to set some   
"ENABLE_REMOTE_DEBUGGING" switch of some sort so that this can be  
configured in one place.


TIA
skybow





--

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


Re: [CMake] CPack: Debian package will not install on Linix-ppc

2015-11-27 Thread Domen Vrankar
2015-11-26 0:01 GMT+01:00 Bill Somerville :
> Hi All,
>
> we are trying to get our Debian install package to install on a Linux
> PowerPC system running

Which version of CMake have you tried?
Version 3.4.0 had some changes regarding how DEB packages are packaged
(libarchive instead of system tar) so try to see if that version works
for you.

> The system is Ubuntu Mate 15.10 on a G5 IMac and the package was built on
> the same system.
>
> CMake script is here:
>
> https://sourceforge.net/p/wsjt/wsjt/HEAD/tree/branches/wsjtx-1.6/CMakeLists.txt

Try to create a simple package first and see if the error still occurs
and then go from there.
Something like:

cmake_minimum_required(VERSION 3.4 FATAL_ERROR)

set(CPACK_PACKAGE_CONTACT "someone")
install(FILES CMakeLists.txt DESTINATION foo COMPONENT test)
set(CPACK_PACKAGE_NAME "minimal")

set(CPACK_GENERATOR "DEB")
include(CPack)

Regards,
Domen
-- 

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