Commit 5fce2dc7 authored by dickelbeck's avatar dickelbeck

Use CMAKE_COMMAND macro because it is expanded to include full path

parent 4611bfd5
...@@ -404,7 +404,7 @@ foreach(LOOP_VAR ${BITMAP_SRCS}) ...@@ -404,7 +404,7 @@ foreach(LOOP_VAR ${BITMAP_SRCS})
set(CPP_BITMAP "${XPM_CPP_PATH}/${BASENAME}.cpp") set(CPP_BITMAP "${XPM_CPP_PATH}/${BASENAME}.cpp")
add_custom_command( add_custom_command(
OUTPUT ${CPP_BITMAP} OUTPUT ${CPP_BITMAP}
COMMAND cmake -E copy "${PATH}/${BASENAME}.xpm" "${CPP_BITMAP}" COMMAND "$(CMAKE_COMMAND)" -E copy "${PATH}/${BASENAME}.xpm" "${CPP_BITMAP}"
DEPENDS ${BASENAME}.xpm) DEPENDS ${BASENAME}.xpm)
list(APPEND CPP_BITMAPS ${CPP_BITMAP}) list(APPEND CPP_BITMAPS ${CPP_BITMAP})
set_source_files_properties(${CPP_BITMAP} PROPERTIES COMPILE_FLAGS -DXPMMAIN) set_source_files_properties(${CPP_BITMAP} PROPERTIES COMPILE_FLAGS -DXPMMAIN)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment