Skip to content

Commit e1443e8

Browse files
committed
Automatically set the define for MACOS based on CMAKE_SYSTEM_NAME
1 parent 7844257 commit e1443e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
109109
find_package(ICU REQUIRED)
110110
set(XML_LIBRARIES ${XML_LIBRARIES} ${ICU_LIBRARIES})
111111
set(XML_INCLUDE_DIRS ${XML_INCLUDE_DIRS} ${ICU_INCLUDE_DIRS})
112+
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
113+
add_definitions(-DMACOS)
112114
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
113115
add_definitions(-DWINDOWS)
114116
endif()

0 commit comments

Comments
 (0)