FindwxWidgets: Improve path detection logic when cross-compiling.
This commit is contained in:
parent
8c30014982
commit
3328623504
|
@ -229,13 +229,12 @@ else()
|
||||||
endif()
|
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")
|
set(wxWidgets_FIND_STYLE "win32")
|
||||||
else()
|
else()
|
||||||
if(UNIX OR MSYS)
|
set(wxWidgets_FIND_STYLE "unix")
|
||||||
set(wxWidgets_FIND_STYLE "unix")
|
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
#=====================================================================
|
#=====================================================================
|
||||||
|
|
Loading…
Reference in New Issue