diff --git a/build/cmake/samples/html.cmake b/build/cmake/samples/html.cmake
index 5128258f77..3e22660c2e 100644
--- a/build/cmake/samples/html.cmake
+++ b/build/cmake/samples/html.cmake
@@ -35,7 +35,8 @@ wx_add_sample(test
LIBRARIES wxnet wxhtml NAME htmltest DEPENDS wxUSE_SOCKETS)
wx_add_sample(virtual DATA start.htm LIBRARIES wxhtml)
wx_add_sample(widget DATA start.htm LIBRARIES wxhtml)
-wx_add_sample(zip DATA pages.zip start.htm LIBRARIES wxhtml DEPENDS wxUSE_FS_ZIP)
+wx_add_sample(zip DATA pages.zip start.htm LIBRARIES wxhtml NAME htmlzip
+ DEPENDS wxUSE_FS_ZIP)
set(wxSAMPLE_SUBDIR)
set(wxSAMPLE_FOLDER)