* FIX [cmake] fixed cmake package error.
@@ -262,10 +262,14 @@ if(BUILD_NANOMQ_CLI)
add_subdirectory(nanomq_cli)
endif(BUILD_NANOMQ_CLI)
+
+
# Build Windows MSI package with WIX
+if (NANO_PLATFORM_WINDOWS)
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set(CMAKE_INSTALL_PREFIX "${PROJECT_SOURCE_DIR}/install")
endif()
+endif()
message("Install prefix: " ${CMAKE_INSTALL_PREFIX})
# copy and relocate files
