diff --git a/src/wx/CMakeLists.txt b/src/wx/CMakeLists.txt index a9f7f63a..81bd5740 100644 --- a/src/wx/CMakeLists.txt +++ b/src/wx/CMakeLists.txt @@ -1142,7 +1142,7 @@ if(NOT TRANSLATIONS_ONLY) if(UPSTREAM_RELEASE AND WIN32) set(home "$ENV{HOME}") - if(NOT CMAKE_CROSSCOMPILING AND NOT DEFINED ENV{MSYSTEM_PREFIX}) + if((MSVC OR NOT CMAKE_CROSSCOMPILING) AND NOT DEFINED ENV{MSYSTEM_PREFIX}) set(home "$ENV{USERPROFILE}") endif()