Do not recreate Resources.qrc at build-time for WIN32.
(For some yet unknown reason it does not work)
file(APPEND ${_qrc_name} "</qresource>\n")
file(APPEND ${_qrc_name} "</RCC>\n")
endif()
- add_custom_command(
- OUTPUT ${_qrc_name}
- COMMAND ${CMAKE_COMMAND} --build "${CMAKE_BINARY_DIR}" --target rebuild_cache
- )
+ if(NOT WIN32)
+ add_custom_command(
+ OUTPUT ${_qrc_name}
+ COMMAND ${CMAKE_COMMAND} --build "${CMAKE_BINARY_DIR}" --target rebuild_cache
+ )
+ endif()
endmacro(lyx_qt_resources_file)