summaryrefslogtreecommitdiffstats
path: root/Modules/FindwxWindows.cmake
diff options
context:
space:
mode:
authorChristian Pfeiffer <cpfeiffer@live.de>2017-11-19 22:05:31 (GMT)
committerChristian Pfeiffer <cpfeiffer@live.de>2017-11-19 22:05:31 (GMT)
commit9b503cc86e047fb8d9929e49f96f82f2a74af562 (patch)
tree38d0731267c75d9fd0dc13161f878b7e0cf428c8 /Modules/FindwxWindows.cmake
parent85ae0ba796c26b9ba2f7025e267d3f438db388c6 (diff)
downloadCMake-9b503cc86e047fb8d9929e49f96f82f2a74af562.zip
CMake-9b503cc86e047fb8d9929e49f96f82f2a74af562.tar.gz
CMake-9b503cc86e047fb8d9929e49f96f82f2a74af562.tar.bz2
wxWidgets: Respect WX_CONFIG and WXRC_CMD env vars
Issue: #17492
Diffstat (limited to 'Modules/FindwxWindows.cmake')
-rw-r--r--Modules/FindwxWindows.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/FindwxWindows.cmake b/Modules/FindwxWindows.cmake
index 054a1bf..115cdc6 100644
--- a/Modules/FindwxWindows.cmake
+++ b/Modules/FindwxWindows.cmake
@@ -617,7 +617,8 @@ else()
# wx-config should be in your path anyhow, usually no need to set WXWIN or
# search in ../wx or ../../wx
- find_program(CMAKE_WXWINDOWS_WXCONFIG_EXECUTABLE wx-config
+ find_program(CMAKE_WXWINDOWS_WXCONFIG_EXECUTABLE
+ NAMES $ENV{WX_CONFIG} wx-config
HINTS
ENV WXWIN
$ENV{WXWIN}/bin