Re: [CMake] CPack: CPACK_COMPONENT_GROUP in cmake 2.8.3 / Windows binary zip

2011-02-08 Thread Mathieu Malaterre
Answering myself: set(CPACK_MONOLITHIC_INSTALL 1)

2cts

On Tue, Feb 8, 2011 at 5:37 PM, Mathieu Malaterre
mathieu.malate...@gmail.com wrote:
 All,

  I am trying to generate binary zip of my project using CPack 3.8.3
 and looks like now it generates two zip files where each file has the
 name of the group. Did anyone noticed this change ? How do I revert it
 back to the old behavior all groups in the same binary zip file ?

 Thanks,
 --
 Mathieu




-- 
Mathieu
___
Powered by www.kitware.com

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

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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CPack: CPACK_COMPONENT_GROUP in cmake 2.8.3 / Windows binary zip

2011-02-08 Thread Mathieu Malaterre
Hi Eric,

  Thanks a bunch for your tremendous work !
  Quick question would this means that the warning will also go away:

CPack warning: both CPACK_COMPONENTS_ALL and CPACK_MONOLITHIC_INSTALL
have been set.

  AFAIK  CPACK_COMPONENTS_ALL is required to be set to list all
different components, but I still need  CPACK_MONOLITHIC_INSTALL for
backward compatibility.

Thanks again for your work !

On Tue, Feb 8, 2011 at 6:50 PM, Eric Noulard eric.noul...@gmail.com wrote:
 2011/2/8 Mathieu Malaterre mathieu.malate...@gmail.com:
 All,

  I am trying to generate binary zip of my project using CPack 3.8.3
 and looks like now it generates two zip files where each file has the
 name of the group. Did anyone noticed this change ? How do I revert it
 back to the old behavior all groups in the same binary zip file ?

 My fault.

 This is a backward compatibility breakage which is fixed in
 current 2.8.4 rc.

 see:
 http://public.kitware.com/Bug/view.php?id=11452

 and updated component packaging documentation:
 http://www.cmake.org/Wiki/CMake:Component_Install_With_CPack#Controlling_packaging_of_component-aware_generators

 --
 Erk
 Membre de l'April - « promouvoir et défendre le logiciel libre » -
 http://www.april.org




-- 
Mathieu
___
Powered by www.kitware.com

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

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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CPack: CPACK_COMPONENT_GROUP in cmake 2.8.3 / Windows binary zip

2011-02-08 Thread Clinton Stimpson
On Tuesday, February 08, 2011 11:29:31 am Eric Noulard wrote:
 2011/2/8 Mathieu Malaterre mathieu.malate...@gmail.com:
  Hi Eric,
  
   Thanks a bunch for your tremendous work !
 
 You're welcome, feedback of this feature is welcomed.
 
   Quick question would this means that the warning will also go away:
  
  CPack warning: both CPACK_COMPONENTS_ALL and CPACK_MONOLITHIC_INSTALL
  have been set.
  
   AFAIK  CPACK_COMPONENTS_ALL is required to be set to list all
  different components, but I still need  CPACK_MONOLITHIC_INSTALL for
  backward compatibility.
 
 No the warning will not go away because you shouldn't usually use both.
 (in fact it may go away because you won't need to set
 CPACK_MONOLITHIC_INSTALL anymore ...)

I also saw that warning with this example (there's nothing in this example 
about a MONOLITHIC install):

cmake_minimum_required(VERSION 2.8)
project(hello)
install(CODE message(installing...) COMPONENT Hello)
set(CPACK_COMPONENTS_ALL Hello)
set(CPACK_COMPONENTS_ALL_IN_ONE_PACKAGE 1)
set(CPACK_ARCHIVE_COMPONENT_INSTALL 1)
include(CPack)

$ cpack -G TGZ

Why is it a warning if no groups are defined?  Is it because one should use 
groups?
However, I can suppress that warning with 
set(CPACK_COMPONENTS_IGNORE_GROUPS 1)

-- 
Clinton Stimpson
Elemental Technologies, Inc
Computational Simulation Software, LLC
www.csimsoft.com
___
Powered by www.kitware.com

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

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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CPack: CPACK_COMPONENT_GROUP in cmake 2.8.3 / Windows binary zip

2011-02-08 Thread Clinton Stimpson
On Tuesday, February 08, 2011 12:10:36 pm Clinton Stimpson wrote:
 On Tuesday, February 08, 2011 11:29:31 am Eric Noulard wrote:
  2011/2/8 Mathieu Malaterre mathieu.malate...@gmail.com:
   Hi Eric,
   
Thanks a bunch for your tremendous work !
  
  You're welcome, feedback of this feature is welcomed.
  
Quick question would this means that the warning will also go away:
   CPack warning: both CPACK_COMPONENTS_ALL and CPACK_MONOLITHIC_INSTALL
   have been set.
   
AFAIK  CPACK_COMPONENTS_ALL is required to be set to list all
   
   different components, but I still need  CPACK_MONOLITHIC_INSTALL for
   backward compatibility.
  
  No the warning will not go away because you shouldn't usually use both.
  (in fact it may go away because you won't need to set
  CPACK_MONOLITHIC_INSTALL anymore ...)
 
 I also saw that warning with this example (there's nothing in this example
 about a MONOLITHIC install):
 
 cmake_minimum_required(VERSION 2.8)
 project(hello)
 install(CODE message(installing...) COMPONENT Hello)
 set(CPACK_COMPONENTS_ALL Hello)
 set(CPACK_COMPONENTS_ALL_IN_ONE_PACKAGE 1)
 set(CPACK_ARCHIVE_COMPONENT_INSTALL 1)
 include(CPack)
 
 $ cpack -G TGZ
 
 Why is it a warning if no groups are defined?  Is it because one should use
 groups?
 However, I can suppress that warning with
 set(CPACK_COMPONENTS_IGNORE_GROUPS 1)

Oh sorry..  This isn't related...   
Anyway, I was seeing a different warning:
CPack Warning: [TGZ] Some Components defined but NO component group: Ignoring 
component group.

-- 
Clinton Stimpson
Elemental Technologies, Inc
Computational Simulation Software, LLC
www.csimsoft.com
___
Powered by www.kitware.com

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

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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CPack: CPACK_COMPONENT_GROUP in cmake 2.8.3 / Windows binary zip

2011-02-08 Thread Eric Noulard
2011/2/8 Clinton Stimpson clin...@elemtech.com:

 I also saw that warning with this example (there's nothing in this example
 about a MONOLITHIC install):

 cmake_minimum_required(VERSION 2.8)
 project(hello)
 install(CODE message(installing...) COMPONENT Hello)
 set(CPACK_COMPONENTS_ALL Hello)
 set(CPACK_COMPONENTS_ALL_IN_ONE_PACKAGE 1)
 set(CPACK_ARCHIVE_COMPONENT_INSTALL 1)
 include(CPack)

 $ cpack -G TGZ

 Why is it a warning if no groups are defined?  Is it because one should use
 groups?
 However, I can suppress that warning with
 set(CPACK_COMPONENTS_IGNORE_GROUPS 1)

 Oh sorry..  This isn't related...
 Anyway, I was seeing a different warning:
 CPack Warning: [TGZ] Some Components defined but NO component group: Ignoring
 component group.

Ok good.
I tried my best to generate warning about possible misuse of component setttings
However I did not include a way to turn those warnings OFF I'll try to do it
before 2.8.5, just in case I did over-warn.

-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
___
Powered by www.kitware.com

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

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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake