FindwxWidgets should allow to specify which wx-config should be used.
Hi,
When crosscompiling for Windows on a Linux host, I first crosscompile wxWidgets (with externalproject_add), and afterwards I want to use this build.
This is currently not possible - for the Windows case I can set wxWidgets_ROOT_DIR, but I can not specify which wx-config should be used in the Unix case (and crosscompiling counts as unix case). The path attached allows that, so that one could do:
set(wxWidgets_CONFIG_EXECUTABLE "${CMAKE_BINARY_DIR}/wxroot/bin/wx-config")
find_package(wxWidgets COMPONENTS core base REQUIRED)
(Note: The check, if the libraries are there, did not work, I did comment it out).gitdiff.txt
Another note: Such a feature would probably be useful for other modules which use a ....-config command (eg. libSDL, ncurses, ...).
Best regards, Wolfgang
Edited by Wolfgang Dautermann