$OpenBSD: patch-bitmaps_CMakeLists_txt,v 1.1 2013/06/19 16:16:22 espie Exp $
--- bitmaps/CMakeLists.txt.orig	Wed Jun 19 16:57:36 2013
+++ bitmaps/CMakeLists.txt	Wed Jun 19 16:57:47 2013
@@ -429,7 +429,7 @@ foreach(LOOP_VAR ${BITMAP_SRCS})
     set(CPP_BITMAP "${XPM_CPP_PATH}/${BASENAME}.cpp")
     add_custom_command(
         OUTPUT ${CPP_BITMAP}
-        COMMAND "$(CMAKE_COMMAND)" -E copy "${PATH}/${BASENAME}.xpm" "${CPP_BITMAP}"
+        COMMAND "${CMAKE_COMMAND}" -E copy "${PATH}/${BASENAME}.xpm" "${CPP_BITMAP}"
         DEPENDS ${BASENAME}.xpm)
     list(APPEND CPP_BITMAPS ${CPP_BITMAP})
     set_source_files_properties(${CPP_BITMAP} PROPERTIES COMPILE_FLAGS -DXPMMAIN)
