Cmake build:

Do not recreate Resources.qrc at build-time for WIN32.
(For some yet unknown reason it does not work)
This commit is contained in:
Kornel Benko 2012-10-24 10:24:59 +02:00
parent f86c3de3ad
commit d854ded56e

View File

@ -229,10 +229,12 @@ macro(lyx_qt_resources_file _qrc_name _to_dir _list)
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)