https://github.com/Kitware/CMake
Revision b87645b6a57b3c37b28b74f93f6b189079eb67aa authored by Brad King on 18 August 2022, 13:41:08 UTC, committed by Brad King on 19 August 2022, 11:30:54 UTC
Restore the change from commit 6f17996edc (gitlab-ci: Update Windows
builds to MSVC 14.33 toolset, 2022-08-15, v3.24.1~3^2), but not for
packaging jobs.  `cmake-gui` is still buggy when compiled with
the newer toolset.

Issue: #23859
1 parent cb8b27a
Raw File
Tip revision: b87645b6a57b3c37b28b74f93f6b189079eb67aa authored by Brad King on 18 August 2022, 13:41:08 UTC
gitlab-ci: Update non-packaging Windows builds to MSVC 14.33 toolset
Tip revision: b87645b
kde3uic.cmake
# Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
# file Copyright.txt or https://cmake.org/licensing for details.


# used internally by KDE3Macros.cmake
# neundorf@kde.org


execute_process(COMMAND ${KDE_UIC_EXECUTABLE}
   -L ${KDE_UIC_PLUGIN_DIR} -nounload -tr tr2i18n
   -impl ${KDE_UIC_H_FILE}
   ${KDE_UIC_FILE}
   OUTPUT_VARIABLE _uic_CONTENTS
   ERROR_QUIET
  )

string(REGEX REPLACE "tr2i18n\\(\"\"\\)" "QString::null" _uic_CONTENTS "${_uic_CONTENTS}" )
string(REGEX REPLACE "tr2i18n\\(\"\", \"\"\\)" "QString::null" _uic_CONTENTS "${_uic_CONTENTS}" )

file(WRITE ${KDE_UIC_CPP_FILE} "#include <kdialog.h>\n#include <klocale.h>\n\n")
file(APPEND ${KDE_UIC_CPP_FILE} "${_uic_CONTENTS}")

back to top