diff --git a/BaseLib/zlib/CMakeLists.txt b/BaseLib/zlib/CMakeLists.txt
index 7b52a848f127cc2be53256c65658fce1161a8353..93af750c457f534a3ca9373399956c3836a8c726 100644
--- a/BaseLib/zlib/CMakeLists.txt
+++ b/BaseLib/zlib/CMakeLists.txt
@@ -114,9 +114,11 @@ endif()
 # Example binaries
 #============================================================================
 
-add_executable(zlib-example test/example.c)
-target_link_libraries(zlib-example zlib)
-add_test(zlib-example ${EXECUTABLE_OUTPUT_PATH}/zlib-example)
+if(NOT COMPILER_IS_CLANG)
+	add_executable(zlib-example test/example.c)
+	target_link_libraries(zlib-example zlib)
+	add_test(zlib-example ${EXECUTABLE_OUTPUT_PATH}/zlib-example)
+endif()
 #
 #add_executable(minigzip test/minigzip.c)
 #target_link_libraries(minigzip zlib)