diff options
author | Richard M. Shaw <hobbes1069@gmail.com> | 2014-08-22 16:35:00 (GMT) |
---|---|---|
committer | Richard M. Shaw <hobbes1069@gmail.com> | 2014-08-22 17:20:42 (GMT) |
commit | 33286235048495ceafb636d549d9a4e8891967ae (patch) | |
tree | 1105322beae666ebef17d40baba4c26def937a33 /Modules/FindwxWidgets.cmake | |
parent | 8c30014982345567b80ec0dad6bd9eb40dfda505 (diff) | |
download | CMake-33286235048495ceafb636d549d9a4e8891967ae.zip CMake-33286235048495ceafb636d549d9a4e8891967ae.tar.gz CMake-33286235048495ceafb636d549d9a4e8891967ae.tar.bz2 |
FindwxWidgets: Improve path detection logic when cross-compiling.
Diffstat (limited to 'Modules/FindwxWidgets.cmake')
-rw-r--r-- | Modules/FindwxWidgets.cmake | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Modules/FindwxWidgets.cmake b/Modules/FindwxWidgets.cmake index 45596a0..7ef06a8 100644 --- a/Modules/FindwxWidgets.cmake +++ b/Modules/FindwxWidgets.cmake @@ -229,13 +229,12 @@ else() endif() #===================================================================== +# Determine whether unix or win32 paths should be used #===================================================================== -if(WIN32 AND NOT CYGWIN AND NOT MSYS) +if(WIN32 AND NOT CYGWIN AND NOT MSYS AND NOT CMAKE_CROSSCOMPILING) set(wxWidgets_FIND_STYLE "win32") else() - if(UNIX OR MSYS) - set(wxWidgets_FIND_STYLE "unix") - endif() + set(wxWidgets_FIND_STYLE "unix") endif() #===================================================================== |