[CMake] the list parameter passed to function

2012-05-21 Thread Marmot Ken
here is the function : FUNCTION( Append_headers_to_src_list src_list_out src_list_in header_file_path_in ) MESSAGE( src_list_in " : ${src_list_in}" ) FILE( GLOB_RECURSE TEMP_LIST ${header_file_path_in}/*.h ) SET( ${src_list_out} ${src_list_in} ${TEMP_LIST} PARENT_SCOPE ) ENDFUNCTION(

Re: [CMake] Packaging : Debug + Release together

2012-05-21 Thread Eric Noulard
2012/5/21 Nicholas Yue : > Hi, > >    I can build debug and release code by setting the CMAKE_BUILD_TYPE > variable. > >    What is the recommend process/workflow if I wish to build/install/package > both the Debug and Release build into a single e.g. RPM, as part of an > automated process (e.g. ni

Re: [CMake] CPack: Installing applications in separate folders (NSIS)

2012-05-21 Thread Eric Noulard
2012/5/21 David Cole : > On Mon, May 21, 2012 at 2:05 PM, wrote: >> >> But what about other systems like linux. If I have an executable and >> shared libraries for example. >> Then it is possible to install it under /opt/myproject, but it is not >> possible to install the executable under /usr/bin

Re: [CMake] Why is Ninja generator disabled by default?

2012-05-21 Thread Andreas Mohr
Hi, On Mon, May 21, 2012 at 10:40:03AM -0400, cmake-requ...@cmake.org wrote: > From: David Cole > I agree with Bill here -- we cannot turn it on by default until it works > sufficiently for typical use cases. So, what would be needed to turn CMake on by default? 'cause it does not "work sufficie

Re: [CMake] fixup_bundle() doesn't like libglut.3.dylib

2012-05-21 Thread Joe Ping-Lin Hsiao
Thanks, David. It works! Is it possible to do the other way around? I want fixup_bundle() to treat /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libclparser.dylib as an external library instead of a system lib. I looked at functions in BundleUtilities.cmake and GetPrerequisites.

Re: [CMake] Ninja generator is Linux-only?

2012-05-21 Thread Dave Abrahams
on Wed May 16 2012, Bill Hoffman wrote: > Ninja is currently not totally working on mac and windows. > > The limitations are: > > Windows: file level dependencies are not working. > Mac: Frameworks and application bundles are not working. > > Here are the dashboards with the failing tests: > >

[CMake] generating gettext runtime environment on OSX Lion (.7z attachment)

2012-05-21 Thread David Aiken
The original message was held for review because the .zip attachment exceeded the 40k limit.  This is using .7z compression, which gets well under the 40k limit. Ez7z was used to generate it on OSX Lion. From: David Aiken To: "cmake@cmake.org" Sent: Monday,

Re: [CMake] CPack: Installing applications in separate folders (NSIS)

2012-05-21 Thread David Cole
I think you need to do the NSIS script by hand to see what it looks like and then ask the question "how can I get CPack to use a project.nsi file that looks like this?" On Mon, May 21, 2012 at 2:22 PM, wrote: > I think one solution could be that the files must be copied with > add_custom_comma

Re: [CMake] CPack: Installing applications in separate folders (NSIS)

2012-05-21 Thread norulez
I think one solution could be that the files must be copied with add_custom_command's, then run configure_file with the NSIS template to be able to use @ variables and then another add_custom_command to run NSIS. Is there maybe a simpler solution or is this the correct way? Am 21.05.2012 um 20

Re: [CMake] CPack: Installing applications in separate folders (NSIS)

2012-05-21 Thread David Cole
On Mon, May 21, 2012 at 2:05 PM, wrote: > But what about other systems like linux. If I have an executable and > shared libraries for example. > Then it is possible to install it under /opt/myproject, but it is not > possible to install the executable under /usr/bin and the shared libraries > und

Re: [CMake] CPack: Installing applications in separate folders (NSIS)

2012-05-21 Thread norulez
But what about other systems like linux. If I have an executable and shared libraries for example. Then it is possible to install it under /opt/myproject, but it is not possible to install the executable under /usr/bin and the shared libraries under /usr/lib? Or did I misunderstood something? S

Re: [CMake] CPack: Installing applications in separate folders (NSIS)

2012-05-21 Thread David Cole
The install rule: install(FILES ${CMAKE_SOURCE_DIR}/somefolder/myfile.txt DESTINATION $CustomDir) doesn't make sense because $CustomDir is not known at CMake-time or even at build-time or install-time. It's not known except to NSIS at packaging time. make install runs before NSIS runs. Sounds

Re: [CMake] CPack doesn't recognize custom templates

2012-05-21 Thread David Cole
On Sat, May 19, 2012 at 2:51 PM, wrote: > Sorry, but the project is a commercial application. > > Did you mean this site? > http://www.cmake.org/cmake/help/cmake_tutorial.html#s7 > No, I meant this directory within the CMake source tree: http://cmake.org/gitweb?p=cmake.git;a=tree;f=Tests/Tutor

Re: [CMake] CPack doesn't recognize custom templates

2012-05-21 Thread norulez
I don't know how, but the problem is solved. If I find out the problem I'll post it on the list. What i've done was to begin from scratch with the installers CMakeLists.txt and the custom NSIS template. Much thanks to Eric and David for the hint with the "--verbose --debug" command line argume

[CMake] CPack: Installing applications in separate folders (NSIS)

2012-05-21 Thread NoRulez
Hi,I know that the install commands collect files and copy them into the temporary cpack directory for the specified generator.How is it possible to install an application for example into those folders:C:\myappC:\somefolderI defined 'Var CustomDir="C:\somefolder"' in the NSIS template.When I then

Re: [CMake] How to use verbose and debug output for CPack under VS

2012-05-21 Thread norulez
Thanks, the custom command works Am 21.05.2012 um 17:41 schrieb David Cole : > On Mon, May 21, 2012 at 3:30 AM, Eric Noulard wrote: > 2012/5/21 : > > Is there an environment variable or a CMake/CPack variable which is must > > set? > > Currently AFAIK there aren't any. > But it would be easy

Re: [CMake] How to use verbose and debug output for CPack under VS

2012-05-21 Thread David Cole
On Mon, May 21, 2012 at 3:30 AM, Eric Noulard wrote: > 2012/5/21 : > > Is there an environment variable or a CMake/CPack variable which is must > set? > > Currently AFAIK there aren't any. > But it would be easy to add, you may propose a patch. > > > how can I configure a project for Visual Studi

Re: [CMake] Downgrade CMake

2012-05-21 Thread David Cole
You can simply unzip the .tar.gz rather than using the *.dmg installer. And then move it into "/Applications" if that's where you want it. Not sure how to completely remove knowledge of a newer CMake from the whole OS. I know there is a history of what you've installed in the file "/Library/Receip

Re: [CMake] Why is Ninja generator disabled by default?

2012-05-21 Thread David Cole
On Mon, May 21, 2012 at 9:01 AM, Bill Hoffman wrote: > On 5/20/2012 7:58 AM, Claus Klein wrote: > >> >> So please, there is no reason to disable the ninja generator by default. >> > > > Sorry, until it actually works with full features I can not do that. OSX > needs the frameworks and application

Re: [CMake] Why is Ninja generator disabled by default?

2012-05-21 Thread Bill Hoffman
On 5/20/2012 7:58 AM, Claus Klein wrote: So please, there is no reason to disable the ninja generator by default. Sorry, until it actually works with full features I can not do that. OSX needs the frameworks and application bundles implemented. Windows needs file level depends. Too many p

[CMake] Packaging : Debug + Release together

2012-05-21 Thread Nicholas Yue
Hi, I can build debug and release code by setting the CMAKE_BUILD_TYPE variable. What is the recommend process/workflow if I wish to build/install/package both the Debug and Release build into a single e.g. RPM, as part of an automated process (e.g. nightly build) ? How will CP

Re: [CMake] How to use verbose and debug output for CPack under VS

2012-05-21 Thread Eric Noulard
2012/5/21 : > Is there an environment variable or a CMake/CPack variable which is must set? Currently AFAIK there aren't any. But it would be easy to add, you may propose a patch. > how can I configure a project for Visual Studio to use the "--verbose" and > the "--debug" > options/command line

Re: [CMake] Windows 260 Char Limit Hit with CPack

2012-05-21 Thread Eric Noulard
2012/5/21 David A. Alexander : > > We are running CPack remotely through Jenkins [1] to end up running a > build/package process on a Windows 2008 Server machine and are seeing errors > during the install into the _CPack_Packages directory because file paths > exceeds the windows 260 character limi