1.0.0 • Published 1 year ago

tutorial_portable_with_nsis_asx v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Tutorial: Portable With NSIS

CLICK HERE ->>->>->> https://shoxet.com/2tjFEz

The next step is to see if the package is ready for installation. We use the CPACK_GENERATOR variable to set the stage for the install phase of the build. CPack sets this to CMAKE_BUILD_TYPE, when CMake is run in the generator. This variable is best set to RelWithDebInfo, which will use the debug and optimized build types to figure out what is installed. Additionally, we can use CPACK_RUN_BUILD_TESTS to force CPack to run the unit tests before installing. These are examples of CPack expressions.

Now is when the project starts to get the benefit of some of the CPack templates. The project will either be a Win32 or Win64 project. A Win32 build will normally have either a Debug or Release build, whereas Win64 will have a Debug or Release/Win64 build. This defaults to what the user sets in CMake. If the CMAKE_BUILD_TYPE variable is set to a different value for the project, then this is used to override the setting. This variable is often useful for informing the users of what kind of build they are using. However, the Win64 project does not support the Win64 targets for the above configurations by default. This is a limitation of NSIS and the lack of Win64 support in CPack. To have the project support Win64, the COMPILER_TARGETS variable needs to be set to Win64. This causes the project to use the Win64 build type and hence supports the Win64 configurations. This is also set to the default value for the project by CMake, so it only needs to be set in CPack by the user. 84d34552a1