]> git.lyx.org Git - lyx.git/commitdiff
Cmake build:
authorKornel Benko <kornel@lyx.org>
Wed, 24 Oct 2012 08:24:59 +0000 (10:24 +0200)
committerKornel Benko <kornel@lyx.org>
Wed, 24 Oct 2012 08:24:59 +0000 (10:24 +0200)
Do not recreate Resources.qrc at build-time for WIN32.
(For some yet unknown reason it does not work)

development/cmake/modules/LyXMacros.cmake

index b41de4d8a0a3b44e20e661d28edd48c9ac0487ba..816112eb544f9f54c3ad1dccd7f7ec3007be89f7 100644 (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)