From 49b62441b53d81d4d1dc48438c7b76852fb0fb04 Mon Sep 17 00:00:00 2001 From: Maarten Bent Date: Sun, 18 Sep 2022 17:16:56 +0200 Subject: [PATCH] CMake: Restore wx-config variables This was erroneously removed in ad75a77bc6 (CMake: Cleanup the wx_configure_script macro, 2021-10-27). Fixes #22806. See #22809. --- build/cmake/config.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build/cmake/config.cmake b/build/cmake/config.cmake index b359560bc0..f9d08e45f5 100644 --- a/build/cmake/config.cmake +++ b/build/cmake/config.cmake @@ -12,6 +12,10 @@ file(MAKE_DIRECTORY ${wxCONFIG_DIR}) set(TOOLCHAIN_FULLNAME ${wxBUILD_FILE_ID}) macro(wx_configure_script input output) + # variables used in wx-config-inplace.in + set(abs_top_srcdir ${CMAKE_CURRENT_SOURCE_DIR}) + set(abs_top_builddir ${CMAKE_CURRENT_BINARY_DIR}) + configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/${input} ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/${output}