]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: check for osx using `APPLE` not `DARWIN`
authorKefu Chai <kchai@redhat.com>
Sat, 9 Sep 2017 14:16:36 +0000 (22:16 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 16 Sep 2017 02:43:32 +0000 (10:43 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/CMakeLists.txt

index 020d463f89bfa09d1da68f7280db294edcb42579..8b3897fd3c5b21f7db73771b222b7d27d2294f41 100644 (file)
@@ -550,7 +550,7 @@ endif()
 
 if(FREEBSD)
   list(APPEND libcommon_files common/freebsd_errno.cc)
-elseif(DARWIN)
+elseif(APPLE)
   list(APPEND libcommon_files common/darwin_errno.cc)
 elseif(SUN)
   list(APPEND libcommon_files common/solaris_errno.cc)