aboutsummaryrefslogtreecommitdiff
path: root/cmake/32-bit-toolchain.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/32-bit-toolchain.cmake')
-rw-r--r--cmake/32-bit-toolchain.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/32-bit-toolchain.cmake b/cmake/32-bit-toolchain.cmake
index fe9aa483f..253523e66 100644
--- a/cmake/32-bit-toolchain.cmake
+++ b/cmake/32-bit-toolchain.cmake
@@ -26,7 +26,9 @@
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-set (CMAKE_SYSTEM_NAME Windows)
+if (NOT CMAKE_HOST_WIN32)
+ set (CMAKE_SYSTEM_NAME Windows)
+endif()
set (GCC_PREFIX i686-w64-mingw32)
set (CMAKE_C_COMPILER ${GCC_PREFIX}-gcc)