Re: [CMake] Packaging issues

2017-04-18 Thread Volker Enderlein

Hello Konstantin,

Thanks again for your excellent support and your continuous development 
of the CPack IFW module.


Cheers, Volker

Am 18.04.2017 um 18:52 schrieb Konstantin Podsvirov:

The CPackIFW module learned the new hint CPACK_IFW_ROOT variable for finding 
the QtIFW tool suite installed in a non-standard place.

https://cmake.org/cmake/help/git-master/module/CPackIFW.html#variable:CPACK_IFW_ROOT

This feature available in 'master' branch and will be released with CMake 3.9.0.

03.04.2017, 19:44, "Konstantin Podsvirov" :

Hello Volker!

03.04.2017, 18:50, "Volker Enderlein" :

  Am 03/04/2017 um 12:30 schrieb Volker Enderlein:

   Hi,

   I'm facing problems using the packaging with CPACK.

   I try to build three different packages, a MSI (via WIX), an IFW, and
   a ZIP package.

   According to the documentation I set the following variables in my
   CMakeLists.txt (and a few more which are required):

   set(CPACK_WIX_ROOT "C:/Temp/WiX-3.10/binaries")

   set(QTIFWDIR "${GLOBAL}/Qt/Tools/QtInstallerFramework/2.0/bin")


As wrote in the documentation:

https://cmake.org/cmake/help/latest/module/CPackIFW.html#overview

QTIFWDIR (like QTDIR) - it's QtIFW installation path (without "/bin").

You can set it's as your environment variable and use for all your projects.


   set(CPACK_GENERATOR "WIX;IFW;ZIP")

   After creating the build dir and running from there

   cmake -G "Visual Studio 14 2015 Win64" ..\TestProject

   the files CMakeCache.txt, CPackConfig.cmake, CPackSourceConfig.cmake,
   and CPackProperties.cmake are generated.

   When running `cpack -C Release` to build all three installers at once,
   the first one (WIX) is built, but the second one (QtIFW) fails with
   the messages

   CPack Error: Cannot find QtIFW compiler "binarycreator": likely it is
   not installed, or not in your PATH
   CPack Error: Cannot initialize the generator IFW

   I inspected the CMakeCache.txt file but found the following entries
   properly defined:

   //QtIFW binarycreator command line client
   
CPACK_IFW_BINARYCREATOR_EXECUTABLE:FILEPATH=N:/Global/Qt/Tools/QtInstallerFramework/2.0/bin/binarycreator.exe

   //QtIFW devtool command line client
   
CPACK_IFW_DEVTOOL_EXECUTABLE:FILEPATH=N:/Global/Qt/Tools/QtInstallerFramework/2.0/bin/devtool.exe

   //QtIFW installer executable base
   
CPACK_IFW_INSTALLERBASE_EXECUTABLE:FILEPATH=N:/Global/Qt/Tools/QtInstallerFramework/2.0/bin/installerbase.exe

   //QtIFW repogen command line client
   
CPACK_IFW_REPOGEN_EXECUTABLE:FILEPATH=N:/Global/Qt/Tools/QtInstallerFramework/2.0/bin/repogen.exe

   //Enable to build 7-Zip source packages
   CPACK_SOURCE_7Z:BOOL=ON

   //Enable to build ZIP source packages
   CPACK_SOURCE_ZIP:BOOL=ON

   //Path to a program.
   CPACK_WIX_CANDLE_EXECUTABLE:FILEPATH=C:/Temp/WiX-3.10/binaries/candle.exe

   //Path to a program.
   CPACK_WIX_LIGHT_EXECUTABLE:FILEPATH=C:/Temp/WiX-3.10/binaries/light.exe

   But when I checked the CPack*Config.cmake files none of the entries
   above are referenced. After running the `cmake -G "Visual Studio 14
   2015 Win64" ..\TestProject` a second time everything is fine; the
   entries are referenced in CPack*Config.cmake files and all three
   installers can be built.

   So I really get stuck at this point.

   Any ideas what could be the issue and how to avoid it?

   Cheers Volker


  A close follow up.

  I finally figured out what didn't work.

  The setting of the QTIFWDIR variable is not saved to the
  CPack*Config.cmake files. But the CMAKE_WIX_ROOT variable is. Those
  variables seem to be evaluated at runtime by CPack. Therefore the WIX
  build run successfully but the IFW build complained about a the path.
  Adding the variable with its current setting made everything run as
  expected.

  Cheers Volker

  --

  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


Good luck with creating your installers!

--
Regards,
Konstantin Podsvirov (CPackIFW author)
--

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: 

Re: [CMake] Packaging issues

2017-04-18 Thread Konstantin Podsvirov
The CPackIFW module learned the new hint CPACK_IFW_ROOT variable for finding 
the QtIFW tool suite installed in a non-standard place.

https://cmake.org/cmake/help/git-master/module/CPackIFW.html#variable:CPACK_IFW_ROOT

This feature available in 'master' branch and will be released with CMake 3.9.0.

03.04.2017, 19:44, "Konstantin Podsvirov" :
> Hello Volker!
>
> 03.04.2017, 18:50, "Volker Enderlein" :
>>  Am 03/04/2017 um 12:30 schrieb Volker Enderlein:
>>>   Hi,
>>>
>>>   I'm facing problems using the packaging with CPACK.
>>>
>>>   I try to build three different packages, a MSI (via WIX), an IFW, and
>>>   a ZIP package.
>>>
>>>   According to the documentation I set the following variables in my
>>>   CMakeLists.txt (and a few more which are required):
>>>
>>>   set(CPACK_WIX_ROOT "C:/Temp/WiX-3.10/binaries")
>>>
>>>   set(QTIFWDIR "${GLOBAL}/Qt/Tools/QtInstallerFramework/2.0/bin")
>
> As wrote in the documentation:
>
> https://cmake.org/cmake/help/latest/module/CPackIFW.html#overview
>
> QTIFWDIR (like QTDIR) - it's QtIFW installation path (without "/bin").
>
> You can set it's as your environment variable and use for all your projects.
>
>>>   set(CPACK_GENERATOR "WIX;IFW;ZIP")
>>>
>>>   After creating the build dir and running from there
>>>
>>>   cmake -G "Visual Studio 14 2015 Win64" ..\TestProject
>>>
>>>   the files CMakeCache.txt, CPackConfig.cmake, CPackSourceConfig.cmake,
>>>   and CPackProperties.cmake are generated.
>>>
>>>   When running `cpack -C Release` to build all three installers at once,
>>>   the first one (WIX) is built, but the second one (QtIFW) fails with
>>>   the messages
>>>
>>>   CPack Error: Cannot find QtIFW compiler "binarycreator": likely it is
>>>   not installed, or not in your PATH
>>>   CPack Error: Cannot initialize the generator IFW
>>>
>>>   I inspected the CMakeCache.txt file but found the following entries
>>>   properly defined:
>>>
>>>   //QtIFW binarycreator command line client
>>>   
>>> CPACK_IFW_BINARYCREATOR_EXECUTABLE:FILEPATH=N:/Global/Qt/Tools/QtInstallerFramework/2.0/bin/binarycreator.exe
>>>
>>>   //QtIFW devtool command line client
>>>   
>>> CPACK_IFW_DEVTOOL_EXECUTABLE:FILEPATH=N:/Global/Qt/Tools/QtInstallerFramework/2.0/bin/devtool.exe
>>>
>>>   //QtIFW installer executable base
>>>   
>>> CPACK_IFW_INSTALLERBASE_EXECUTABLE:FILEPATH=N:/Global/Qt/Tools/QtInstallerFramework/2.0/bin/installerbase.exe
>>>
>>>   //QtIFW repogen command line client
>>>   
>>> CPACK_IFW_REPOGEN_EXECUTABLE:FILEPATH=N:/Global/Qt/Tools/QtInstallerFramework/2.0/bin/repogen.exe
>>>
>>>   //Enable to build 7-Zip source packages
>>>   CPACK_SOURCE_7Z:BOOL=ON
>>>
>>>   //Enable to build ZIP source packages
>>>   CPACK_SOURCE_ZIP:BOOL=ON
>>>
>>>   //Path to a program.
>>>   CPACK_WIX_CANDLE_EXECUTABLE:FILEPATH=C:/Temp/WiX-3.10/binaries/candle.exe
>>>
>>>   //Path to a program.
>>>   CPACK_WIX_LIGHT_EXECUTABLE:FILEPATH=C:/Temp/WiX-3.10/binaries/light.exe
>>>
>>>   But when I checked the CPack*Config.cmake files none of the entries
>>>   above are referenced. After running the `cmake -G "Visual Studio 14
>>>   2015 Win64" ..\TestProject` a second time everything is fine; the
>>>   entries are referenced in CPack*Config.cmake files and all three
>>>   installers can be built.
>>>
>>>   So I really get stuck at this point.
>>>
>>>   Any ideas what could be the issue and how to avoid it?
>>>
>>>   Cheers Volker
>>
>>  A close follow up.
>>
>>  I finally figured out what didn't work.
>>
>>  The setting of the QTIFWDIR variable is not saved to the
>>  CPack*Config.cmake files. But the CMAKE_WIX_ROOT variable is. Those
>>  variables seem to be evaluated at runtime by CPack. Therefore the WIX
>>  build run successfully but the IFW build complained about a the path.
>>  Adding the variable with its current setting made everything run as
>>  expected.
>>
>>  Cheers Volker
>>
>>  --
>>
>>  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
>
> Good luck with creating your installers!
>
> --
> Regards,
> Konstantin Podsvirov (CPackIFW author)
> --
>
> 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: 

Re: [CMake] Packaging issues

2017-04-03 Thread Konstantin Podsvirov
Hello Volker!

03.04.2017, 18:50, "Volker Enderlein" :
> Am 03/04/2017 um 12:30 schrieb Volker Enderlein:
>>  Hi,
>>
>>  I'm facing problems using the packaging with CPACK.
>>
>>  I try to build three different packages, a MSI (via WIX), an IFW, and
>>  a ZIP package.
>>
>>  According to the documentation I set the following variables in my
>>  CMakeLists.txt (and a few more which are required):
>>
>>  set(CPACK_WIX_ROOT "C:/Temp/WiX-3.10/binaries")
>>
>>  set(QTIFWDIR "${GLOBAL}/Qt/Tools/QtInstallerFramework/2.0/bin")

As wrote in the documentation:

https://cmake.org/cmake/help/latest/module/CPackIFW.html#overview

QTIFWDIR (like QTDIR) - it's QtIFW installation path (without "/bin").

You can set it's as your environment variable and use for all your projects.

>>  set(CPACK_GENERATOR "WIX;IFW;ZIP")
>>
>>  After creating the build dir and running from there
>>
>>  cmake -G "Visual Studio 14 2015 Win64" ..\TestProject
>>
>>  the files CMakeCache.txt, CPackConfig.cmake, CPackSourceConfig.cmake,
>>  and CPackProperties.cmake are generated.
>>
>>  When running `cpack -C Release` to build all three installers at once,
>>  the first one (WIX) is built, but the second one (QtIFW) fails with
>>  the messages
>>
>>  CPack Error: Cannot find QtIFW compiler "binarycreator": likely it is
>>  not installed, or not in your PATH
>>  CPack Error: Cannot initialize the generator IFW
>>
>>  I inspected the CMakeCache.txt file but found the following entries
>>  properly defined:
>>
>>  //QtIFW binarycreator command line client
>>  
>> CPACK_IFW_BINARYCREATOR_EXECUTABLE:FILEPATH=N:/Global/Qt/Tools/QtInstallerFramework/2.0/bin/binarycreator.exe
>>
>>  //QtIFW devtool command line client
>>  
>> CPACK_IFW_DEVTOOL_EXECUTABLE:FILEPATH=N:/Global/Qt/Tools/QtInstallerFramework/2.0/bin/devtool.exe
>>
>>  //QtIFW installer executable base
>>  
>> CPACK_IFW_INSTALLERBASE_EXECUTABLE:FILEPATH=N:/Global/Qt/Tools/QtInstallerFramework/2.0/bin/installerbase.exe
>>
>>  //QtIFW repogen command line client
>>  
>> CPACK_IFW_REPOGEN_EXECUTABLE:FILEPATH=N:/Global/Qt/Tools/QtInstallerFramework/2.0/bin/repogen.exe
>>
>>  //Enable to build 7-Zip source packages
>>  CPACK_SOURCE_7Z:BOOL=ON
>>
>>  //Enable to build ZIP source packages
>>  CPACK_SOURCE_ZIP:BOOL=ON
>>
>>  //Path to a program.
>>  CPACK_WIX_CANDLE_EXECUTABLE:FILEPATH=C:/Temp/WiX-3.10/binaries/candle.exe
>>
>>  //Path to a program.
>>  CPACK_WIX_LIGHT_EXECUTABLE:FILEPATH=C:/Temp/WiX-3.10/binaries/light.exe
>>
>>  But when I checked the CPack*Config.cmake files none of the entries
>>  above are referenced. After running the `cmake -G "Visual Studio 14
>>  2015 Win64" ..\TestProject` a second time everything is fine; the
>>  entries are referenced in CPack*Config.cmake files and all three
>>  installers can be built.
>>
>>  So I really get stuck at this point.
>>
>>  Any ideas what could be the issue and how to avoid it?
>>
>>  Cheers Volker
>
> A close follow up.
>
> I finally figured out what didn't work.
>
> The setting of the QTIFWDIR variable is not saved to the
> CPack*Config.cmake files. But the CMAKE_WIX_ROOT variable is. Those
> variables seem to be evaluated at runtime by CPack. Therefore the WIX
> build run successfully but the IFW build complained about a the path.
> Adding the variable with its current setting made everything run as
> expected.
>
> Cheers Volker
>
> --
>
> 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

Good luck with creating your installers!

--
Regards,
Konstantin Podsvirov (CPackIFW author)
-- 

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] Packaging issues

2017-04-03 Thread Volker Enderlein

Am 03/04/2017 um 12:30 schrieb Volker Enderlein:

Hi,


I'm facing problems using the packaging with CPACK.

I try to build three different packages, a MSI (via WIX), an IFW, and 
a ZIP package.


According to the documentation I set the following variables in my 
CMakeLists.txt (and a few more which are required):


set(CPACK_WIX_ROOT "C:/Temp/WiX-3.10/binaries")

set(QTIFWDIR "${GLOBAL}/Qt/Tools/QtInstallerFramework/2.0/bin")

set(CPACK_GENERATOR "WIX;IFW;ZIP")

After creating the build dir and running from there

cmake -G "Visual Studio 14 2015 Win64" ..\TestProject

the files CMakeCache.txt, CPackConfig.cmake, CPackSourceConfig.cmake, 
and CPackProperties.cmake are generated.


When running `cpack -C Release` to build all three installers at once, 
the first one (WIX) is built, but the second one (QtIFW) fails with 
the messages


CPack Error: Cannot find QtIFW compiler "binarycreator": likely it is 
not installed, or not in your PATH

CPack Error: Cannot initialize the generator IFW

I inspected the CMakeCache.txt file but found the following entries 
properly defined:


//QtIFW binarycreator command line client
CPACK_IFW_BINARYCREATOR_EXECUTABLE:FILEPATH=N:/Global/Qt/Tools/QtInstallerFramework/2.0/bin/binarycreator.exe 



//QtIFW devtool command line client
CPACK_IFW_DEVTOOL_EXECUTABLE:FILEPATH=N:/Global/Qt/Tools/QtInstallerFramework/2.0/bin/devtool.exe 



//QtIFW installer executable base
CPACK_IFW_INSTALLERBASE_EXECUTABLE:FILEPATH=N:/Global/Qt/Tools/QtInstallerFramework/2.0/bin/installerbase.exe 



//QtIFW repogen command line client
CPACK_IFW_REPOGEN_EXECUTABLE:FILEPATH=N:/Global/Qt/Tools/QtInstallerFramework/2.0/bin/repogen.exe 



//Enable to build 7-Zip source packages
CPACK_SOURCE_7Z:BOOL=ON

//Enable to build ZIP source packages
CPACK_SOURCE_ZIP:BOOL=ON

//Path to a program.
CPACK_WIX_CANDLE_EXECUTABLE:FILEPATH=C:/Temp/WiX-3.10/binaries/candle.exe

//Path to a program.
CPACK_WIX_LIGHT_EXECUTABLE:FILEPATH=C:/Temp/WiX-3.10/binaries/light.exe

But when I checked the CPack*Config.cmake files none of the entries 
above are referenced. After running the `cmake -G "Visual Studio 14 
2015 Win64" ..\TestProject` a second time everything is fine; the 
entries are referenced in CPack*Config.cmake files and all three 
installers can be built.


So I really get stuck at this point.


Any ideas what could be the issue and how to avoid it?


Cheers Volker


A close follow up.

I finally figured out what didn't work.

The setting of the QTIFWDIR variable is not saved to the 
CPack*Config.cmake files. But the CMAKE_WIX_ROOT variable is. Those 
variables seem to be evaluated at runtime by CPack. Therefore the WIX 
build run successfully but the IFW build complained about a the path. 
Adding the variable with its current setting made everything run as 
expected.


Cheers Volker

--

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] Packaging issues

2017-04-03 Thread Volker Enderlein

Am 03/04/2017 um 12:54 schrieb Domen Vrankar:
2017-04-03 12:30 GMT+02:00 Volker Enderlein 
>:


But when I checked the CPack*Config.cmake files none of the
entries above are referenced. After running the `cmake -G "Visual
Studio 14 2015 Win64" ..\TestProject` a second time everything is
fine; the entries are referenced in CPack*Config.cmake files and
all three installers can be built.

So I really get stuck at this point.


Any ideas what could be the issue and how to avoid it?


From what you have described my best guess would be that "include( 
CPack )" is called before the variables are set and that second 
configure step then sets variables in CPack.cmake script correctly 
since their values are already cached by the first configure step. If 
I'm correct then calling "include( CPack )" at the end - this is the 
intended use - of the script would solve your problem.


Regards,
Domen

Hi Domen,

pardon for not responding to the list.

Thanks for helping, I'm already including  CPack at the last possible 
position before any components are defined.


BTW. I'm using CMake 3.7.2

< all variables have been defined before this point>

include(CPack)
include(CPackWIX)
include(CPackIFW)

cpack_add_component(AppBinaries DISPLAY_NAME "MyAppBinaries" 
DESCRIPTION "My Application Binaries")
cpack_ifw_configure_component(AppBinaries VERSION 
${CPACK_PACKAGE_VERSION} SCRIPT 
"${CMAKE_SOURCE_DIR}/cpack/installscript.qs")
cpack_add_component(AppDocs DISPLAY_NAME "MyAppDocs" DESCRIPTION 
"My Application Docs")
cpack_add_component(AppData DISPLAY_NAME "MyAppData" DESCRIPTION 
"My Application Data")


Cheers Volker
--

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] Packaging issues

2017-04-03 Thread Domen Vrankar
2017-04-03 12:30 GMT+02:00 Volker Enderlein <
volker.enderl...@ifm-chemnitz.de>:

> But when I checked the CPack*Config.cmake files none of the entries above
> are referenced. After running the `cmake -G "Visual Studio 14 2015 Win64"
> ..\TestProject` a second time everything is fine; the entries are
> referenced in CPack*Config.cmake files and all three installers can be
> built.
>
> So I really get stuck at this point.
>
>
> Any ideas what could be the issue and how to avoid it?
>

>From what you have described my best guess would be that "include( CPack )"
is called before the variables are set and that second configure step then
sets variables in CPack.cmake script correctly since their values are
already cached by the first configure step. If I'm correct then calling
"include( CPack )" at the end - this is the intended use - of the script
would solve your problem.

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

[CMake] Packaging issues

2017-04-03 Thread Volker Enderlein

Hi,


I'm facing problems using the packaging with CPACK.

I try to build three different packages, a MSI (via WIX), an IFW, and a 
ZIP package.


According to the documentation I set the following variables in my 
CMakeLists.txt (and a few more which are required):


set(CPACK_WIX_ROOT "C:/Temp/WiX-3.10/binaries")

set(QTIFWDIR "${GLOBAL}/Qt/Tools/QtInstallerFramework/2.0/bin")

set(CPACK_GENERATOR "WIX;IFW;ZIP")

After creating the build dir and running from there

cmake -G "Visual Studio 14 2015 Win64" ..\TestProject

the files CMakeCache.txt, CPackConfig.cmake, CPackSourceConfig.cmake, 
and CPackProperties.cmake are generated.


When running `cpack -C Release` to build all three installers at once, 
the first one (WIX) is built, but the second one (QtIFW) fails with the 
messages


CPack Error: Cannot find QtIFW compiler "binarycreator": likely it is 
not installed, or not in your PATH

CPack Error: Cannot initialize the generator IFW

I inspected the CMakeCache.txt file but found the following entries 
properly defined:


//QtIFW binarycreator command line client
CPACK_IFW_BINARYCREATOR_EXECUTABLE:FILEPATH=N:/Global/Qt/Tools/QtInstallerFramework/2.0/bin/binarycreator.exe

//QtIFW devtool command line client
CPACK_IFW_DEVTOOL_EXECUTABLE:FILEPATH=N:/Global/Qt/Tools/QtInstallerFramework/2.0/bin/devtool.exe

//QtIFW installer executable base
CPACK_IFW_INSTALLERBASE_EXECUTABLE:FILEPATH=N:/Global/Qt/Tools/QtInstallerFramework/2.0/bin/installerbase.exe

//QtIFW repogen command line client
CPACK_IFW_REPOGEN_EXECUTABLE:FILEPATH=N:/Global/Qt/Tools/QtInstallerFramework/2.0/bin/repogen.exe

//Enable to build 7-Zip source packages
CPACK_SOURCE_7Z:BOOL=ON

//Enable to build ZIP source packages
CPACK_SOURCE_ZIP:BOOL=ON

//Path to a program.
CPACK_WIX_CANDLE_EXECUTABLE:FILEPATH=C:/Temp/WiX-3.10/binaries/candle.exe

//Path to a program.
CPACK_WIX_LIGHT_EXECUTABLE:FILEPATH=C:/Temp/WiX-3.10/binaries/light.exe

But when I checked the CPack*Config.cmake files none of the entries 
above are referenced. After running the `cmake -G "Visual Studio 14 2015 
Win64" ..\TestProject` a second time everything is fine; the entries are 
referenced in CPack*Config.cmake files and all three installers can be 
built.


So I really get stuck at this point.


Any ideas what could be the issue and how to avoid it?


Cheers Volker

--

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