[CMake] @ONLY and nested variables

2014-09-24 Thread Nico Schlömer
Hi all, I would like to use CONFIGURE_PACKAGE_CONFIG_FILE() [1] instead of CONFIGURE_FILE() for my export configurations. Unfortunately, it seems that CONFIGURE_PACKAGE_CONFIG_FILE() only supports the @ONLY syntax. I do use nested variables names in the export configuration, though, e.g., ``` SET(

Re: [CMake] CPack WIX examples

2014-09-24 Thread Nils Gladitz
On 24.09.2014 23:20, jmerkow wrote: Ok, I've double checked everything and I'm not sure whats going on. I was looking in files.wxs (in _CPack_Packages/win64/WIX) for the component ID, and i've tried a few different ones. I also dropped the config file step and used your example patch.xml:

Re: [CMake] CPack WIX examples

2014-09-24 Thread jmerkow
I forgot to mention that I double checked that this particular code was being executed. I started changing the name (and adding a time stamp) to the msi in the same section of code to double check. Here is it is (its at send of my code for cpack): ... if(WIN32) if(MSVC) se

Re: [CMake] CPack WIX examples

2014-09-24 Thread jmerkow
Ok, I've double checked everything and I'm not sure whats going on. I was looking in files.wxs (in _CPack_Packages/win64/WIX) for the component ID, and i've tried a few different ones. I also dropped the config file step and used your example patch.xml: Still nothing added when I se

Re: [CMake] I broke get_preresiquites

2014-09-24 Thread Richard Shaw
I figured it out... I'm cross-compiling MinGW on Fedora linux and it just dawned on me that the cmake instance run by CPack probably isn't using the correct environment. I think it would be best if this was handled automatically but for the time being I pushed the required variables into the insta

Re: [CMake] CPack WIX examples

2014-09-24 Thread Nils Gladitz
On 24.09.2014 21:26, jmerkow wrote: Am I obtaining the id wrong? The documentation is a little confusing compared to whats being generated. so I'm not sure exactly sure if I have the proper id. Is there a way to get the Id from the in cmake to configure the file directly? Maybe there is another

Re: [CMake] CPack WIX examples

2014-09-24 Thread jmerkow
Ok I'm going the fragment injection route, but having some issues. So I found the component id for the target that these registry values will be needed by in files.wxs: In this case its 'CMP_ID_1', using the first cmp id seemed like a safe bet in general to have it referenced by a feature. S

[CMake] cmake 3.0.0 generating VS sln file default target machine type x86 (UNCLASSIFIED)

2014-09-24 Thread Su, Simon M CTR USARMY ARL (US)
Classification: UNCLASSIFIED Caveats: NONE Hello, I am using https://github.com/rpavlik/cppdom/blob/master/CMakeLists.txt to generate sln file for cppdom to be compiled on windows x64. I ran cmake and compile form VS2013 (express) x64 Cross Tools Command Prompt. How can I change the CMakeLists

Re: [CMake] I broke get_preresiquites

2014-09-24 Thread David Cole via CMake
If you send some code, maybe somebody can spot something wrong with the code... On Wed, Sep 24, 2014 at 9:57 AM, Richard Shaw wrote: > Ok, I have no idea what's going on. > > I'm using configure_file to put the get_preresiquites cmake script in the > binary dir... > It's running... > It's not sho

[CMake] I broke get_preresiquites

2014-09-24 Thread Richard Shaw
Ok, I have no idea what's going on. I'm using configure_file to put the get_preresiquites cmake script in the binary dir... It's running... It's not show any errors... It's also not finding any dependencies... I've double and triple checked that the variable I'm using in the message command is t

Re: [CMake] How to get custom commands to build in parallel ?

2014-09-24 Thread Robert Maynard
/MP flag is specifically for compiling object files in parallel so it won't cause multiple custom commands to be run in parallel as each one is a msbuild custom build item task. I don't know exactly how msbuild treats custom tasks such as these, but they might be implicitly serial. On Wed, Sep 24

Re: [CMake] Ninja generator fail for QNX on Windows

2014-09-24 Thread Cristian Adam
Hendrik Sattler writes: > On 23. September 2014 16:22:40 MESZ, Cristian Adam > >>> QCC compiler generates for this project dependency files which look > >like: > >>> > >>> c:\projects\my_proj\include\/a.h \ > >>> c:\projects\my_proj\src\/a.cpp \ > >>> c:\projects\my_proj\other\..\/include/b.h \

Re: [CMake] How to get custom commands to build in parallel ?

2014-09-24 Thread Glenn Coombs
I am already using /MP and the equivalent to the /maxcpucount. It is the /MP one that is important in this context as I am only concerned with improving the speed of a single project out of the many in my solution. I believe the problem is with cmake rather than with Visual Studio as I can select

Re: [CMake] CPack WIX examples

2014-09-24 Thread Nils Gladitz
On 24.09.2014 02:40, jmerkow wrote: It seems the best way to do this would be to override the template with a number of configurable entries? So I could add something like (there's about 15 of em): I wanted to check to see if there was a way to handle this directly from CMake. The elements

Re: [CMake] CMAKE_INSTALL_PREFIX problem

2014-09-24 Thread Jeremy Ardley
Thanks for assistance. I forgot 'reply all'. Will be better next time :-) On 24/09/14 14:58, Petr Kmoch wrote: > I don't know why @ was inserted, but here's why it overrides the > absolute path: because it has no special meaning. The path then > becomes "@/sbin", which is not an absolute path (doe