Notes |
|
(0030114)
|
Craig Scott
|
2012-07-24 01:54
|
|
Sorry, the original CMakeLists.txt had a bad path in the install_qt4_executable() line. The CMakeLists.txt.update is the one to look at (I can't seem to delete the original CMakeLists.txt from this issue, sorry). |
|
|
(0030115)
|
Craig Scott
|
2012-07-24 02:20
|
|
Er, actually you can reproduce the problem on Windows too with a simple "nmake DESTDIR=somewhere install" as well. Note that CPack *does* happily produce a package on Windows though, so there's something odd going on.
Also, on Windows, the executable passed to install_qt4_executable() should have .exe appended to it.
Finally, to test with CPack, you also need to append a line with "include(CPack)" to the bottom of the CMakeLists.txt file. Sorry, I threw this example together quickly since I was doing my earlier investigations with a much larger and more complex set of files. |
|
|
(0030117)
|
Mike McQuaid
|
2012-07-24 04:50
|
|
Yes, it's exactly what you suspected: an issue with the DESTDIR. You have to pass the full path to FIXUP_QT4_EXECUTABLE (but it will try the CMAKE_INSTALL_PREFIX which sometimes works).
I'd advise you to use INSTALL_QT4_EXECUTABLE instead or manually set the full path. |
|
|
(0030121)
|
Craig Scott
|
2012-07-24 19:41
|
|
Unfortunately, that's not possible. Whatever you do with install_qt4_executable, it prepends ${CMAKE_INSTALL_PREFIX} to the executable name. The problem is, the DESTDIR part needs to go *before* CMAKE_INSTALL_PREFIX. You can't modify CMAKE_INSTALL_PREFIX because that's used by CPack when working out the base install path. |
|
|
(0030122)
|
Mike McQuaid
|
2012-07-25 04:32
|
|
|
|
(0030683)
|
Clinton Stimpson
|
2012-08-15 21:40
|
|
|
|
(0032071)
|
Robert Maynard
|
2013-01-09 14:05
|
|
Closing resolved issues that have not been updated in more than 4 months. |
|