<div dir="ltr">Hello All,<div><br><div>I'm looking for some CPack (3.5.2) wrangling assistance...</div><div><br></div><div>I have CMake automatically generating a unique ID on every build. This ID is compiled into several components of my project and I want the same value to appear in my package file name. I do this by inserting it into a CPack project config file at build time.</div><div><br></div><div>This works great in Visual Studio and XCode. When I build the package target, a new ID is generated, all the dependents are rebuilt and the package is created with the correct file name.</div><div><br></div><div>However, it doesn't work for makefiles. When I execute 'make package', CMake subsequently executes 'make preinstall'. This causes two build IDs to be generated; the first ending up in the package filename and the second ending up in my modules (which are compiled twice).</div><div><br></div><div>As a workaround, I've found that if I edit the CPackConfig.cmake file to replace CPACK_CMAKE_GENERATOR "Unix Makefiles" with "Xcode", it works. CPack apparently knows that it doesn't need to worry about building anything in this case.</div><div><br></div><div>So... Is there a better way to get this message across to CPack? Just package; don't build.</div><div><br></div><div>Duncan</div><div><br></div></div></div>