File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,11 @@ if(WIN32)
9696 list (APPEND cadabra_gtk_src ${CADABRA_LIBS_DIR} /tiny-process-library/process_win.cpp)
9797 # Configure and add resource file to list of sources
9898 configure_file (win_res.rc.in ${CMAKE_CURRENT_BINARY_DIR} /win_res.rc)
99- execute_process (COMMAND windres ${CMAKE_CURRENT_BINARY_DIR} /win_res.rc ${CMAKE_CURRENT_BINARY_DIR} /win_res.o)
99+ add_custom_command (
100+ OUTPUT win_res.o
101+ COMMAND windres ${CMAKE_CURRENT_BINARY_DIR} /win_res.rc ${CMAKE_CURRENT_BINARY_DIR} /win_res.o
102+ COMMENT "Convert .rc file to .o to give us an icon."
103+ )
100104 list (APPEND cadabra_gtk_src ${CMAKE_CURRENT_BINARY_DIR} /win_res.o)
101105else ()
102106 list (APPEND cadabra_gtk_src ${CADABRA_LIBS_DIR} /tiny-process-library/process_unix.cpp)
You can’t perform that action at this time.
0 commit comments