From: Kornel Benko Date: Wed, 24 Oct 2012 08:24:59 +0000 (+0200) Subject: Cmake build: X-Git-Tag: 2.1.0beta1~1340 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=d854ded56eb2241028380ec053425bdf830b6b12;p=features.git Cmake build: Do not recreate Resources.qrc at build-time for WIN32. (For some yet unknown reason it does not work) --- 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)