diff --git a/companion/src/CMakeLists.txt b/companion/src/CMakeLists.txt index 4626b0f9f..4283e58d5 100644 --- a/companion/src/CMakeLists.txt +++ b/companion/src/CMakeLists.txt @@ -459,7 +459,7 @@ if(WIN32) add_custom_target(installer # The 'install' target prepares all the distro files, make sure it has been executed first. - COMMAND "${CMAKE_COMMAND}" --build "${CMAKE_BINARY_DIR}" --target install + COMMAND "${CMAKE_COMMAND}" --build "${CMAKE_BINARY_DIR}" --target install --config Release COMMAND "${NSIS_EXE}" "${NSI_FILE}" DEPENDS "${NSI_FILE}" COMMENT "Building Windows NSIS installer..."