From d854ded56eb2241028380ec053425bdf830b6b12 Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Wed, 24 Oct 2012 10:24:59 +0200 Subject: [PATCH] Cmake build: Do not recreate Resources.qrc at build-time for WIN32. (For some yet unknown reason it does not work) --- development/cmake/modules/LyXMacros.cmake | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/development/cmake/modules/LyXMacros.cmake b/development/cmake/modules/LyXMacros.cmake index b41de4d8a0..816112eb54 100644 --- a/development/cmake/modules/LyXMacros.cmake +++ b/development/cmake/modules/LyXMacros.cmake @@ -229,10 +229,12 @@ macro(lyx_qt_resources_file _qrc_name _to_dir _list) file(APPEND ${_qrc_name} "\n") file(APPEND ${_qrc_name} "\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) -- 2.39.2