Skip to content

Commit 33fad06

Browse files
committed
CMake: Enable WIN32 on MINGW
Strangely, this doesn't seem to be automatic; but when compiling with MinGW we really are compiling for Windows, so set the WIN32 variable to ON. Signed-off-by: Paul Cercueil <[email protected]>
1 parent f8aeded commit 33fad06

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ message(STATUS "cmake version: ${CMAKE_VERSION}")
22
cmake_minimum_required(VERSION 2.8.7)
33
project(libiio C)
44

5+
if (MINGW)
6+
set(WIN32 ON)
7+
endif()
8+
59
set(LIBIIO_VERSION_MAJOR 0)
610
set(LIBIIO_VERSION_MINOR 21)
711
set(VERSION "${LIBIIO_VERSION_MAJOR}.${LIBIIO_VERSION_MINOR}")

0 commit comments

Comments
 (0)