Skip to content

Commit 3ce24eb

Browse files
ZLyleewencp
authored andcommitted
Fixes #16 (#25)
Replacing the WIN32 CMake flag check for a more specific MSVC check, allowing use of non-MS compilers in the win32 environment (MSYS2, MinGW, etc).
1 parent 041c0e6 commit 3ce24eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ PROJECT(liboauthcpp C CXX)
3434
ENABLE_LANGUAGE(C)
3535

3636
# Disable some annoying, unnecessary Windows warnings. Enable unwinding for exception handlers.
37-
IF(WIN32)
37+
IF(MSVC)
3838
ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -EHsc)
3939
SET(CMAKE_CXX_FLAGS "-D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS")
4040
ENDIF()

0 commit comments

Comments
 (0)