File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -59,18 +59,18 @@ IF(${OPERATING_SYSTEM} MATCHES "Android")
59
59
SET (LINUX CACHE INTERNAL "Is Linux or Android" 1 )
60
60
ENDIF ()
61
61
62
- IF (WIN32 )
62
+ IF (CMAKE_SYSTEM_NAME STREQUAL "Windows" )
63
63
ADD_COMPILE_DEFINITIONS (WINDOWS NOMINMAX ) # Do not add min() and max() macros.
64
64
IF (MSVC ) # MSVC Has no UTF-8 support by default
65
65
ADD_COMPILE_OPTIONS (/utf-8 )
66
66
ENDIF ()
67
67
SET (WINDOWS TRUE )
68
- ELSEIF (APPLE )
68
+ ELSEIF (CMAKE_SYSTEM_NAME STREQUAL "Darwin" )
69
69
ADD_COMPILE_DEFINITIONS (MACOSX )
70
- ELSEIF (LINUX )
70
+ ELSEIF (CMAKE_SYSTEM_NAME STREQUAL "Linux" )
71
71
ADD_COMPILE_DEFINITIONS (LINUX )
72
72
ELSE ()
73
- MESSAGE (ERROR "Platform not defined" )
73
+ MESSAGE (WARNING "Platform not defined" )
74
74
ENDIF ()
75
75
76
76
IF (CMAKE_BUILD_TYPE STREQUAL "Debug" )
You can’t perform that action at this time.
0 commit comments