]> git.lyx.org Git - lyx.git/blobdiff - development/cmake/modules/LyXMacros.cmake
Cmake build:
[lyx.git] / 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)