Skip to content

Commit 9c01ab7

Browse files
ajdavishanumantmk
authored andcommitted
Silence CMake 3.0+ warning on Mac OS X.
Closes #201
1 parent 2547749 commit 9c01ab7

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
@@ -51,6 +51,10 @@ if (UNIX AND NOT APPLE)
5151
set(LIBS ${LIBS} rt)
5252
endif()
5353

54+
if (APPLE)
55+
cmake_policy(SET CMP0042 OLD)
56+
endif()
57+
5458
add_definitions(-D_GNU_SOURCE)
5559
add_definitions(-D_BSD_SOURCE)
5660
add_definitions("-DBINARY_DIR=\"${SOURCE_DIR}/tests/binary\"")

0 commit comments

Comments
 (0)