diff --git a/development/cmake/modules/LyXuic.cmake b/development/cmake/modules/LyXuic.cmake index f21aa17f53..b51b1eae64 100644 --- a/development/cmake/modules/LyXuic.cmake +++ b/development/cmake/modules/LyXuic.cmake @@ -25,13 +25,18 @@ # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -EXECUTE_PROCESS(COMMAND ${KDE_UIC_EXECUTABLE} -${KDE_UIC_FILE} -OUTPUT_VARIABLE _uic_CONTENTS -ERROR_QUIET +EXECUTE_PROCESS( + COMMAND ${KDE_UIC_EXECUTABLE} + ${KDE_UIC_FILE} + OUTPUT_VARIABLE _uic_CONTENTS + ERROR_QUIET ) set(KDE_UIC_CPP_FILE ${KDE_UIC_H_FILE}) +if(WIN32) + STRING(REGEX REPLACE "\r" "" _uic_CONTENTS "${_uic_CONTENTS}" ) +endif(WIN32) + FILE(WRITE ${KDE_UIC_CPP_FILE} "${_uic_CONTENTS}\n")