From 6eef4b8c6263af1938ea52bc6e3c6976678225ff Mon Sep 17 00:00:00 2001 From: Jacob Myers Date: Fri, 11 Jun 2010 21:58:38 -0400 Subject: These patches get usbmuxd compiling/working on FreeBSD. With minor changes, it could work on other BSD's also. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 93fa715..8ed2e37 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,7 +13,7 @@ set(LIBUSBMUXD_SOVERSION "1") message("-- Configuring usbmuxd v${VERSION_TAG}") if(NOT DEFINED LIB_SUFFIX) - if(CMAKE_SIZEOF_VOID_P EQUAL 8) + if(CMAKE_SIZEOF_VOID_P EQUAL 8 AND ${CMAKE_SYSTEM_NAME} MATCHES "Linux") set(LIB_SUFFIX "64" CACHE STRING "Define suffix of library directory name (32/64)" ) else() set(LIB_SUFFIX "" CACHE STRING "Define suffix of library directory name (32/64)" ) @@ -67,7 +67,7 @@ add_definitions(-Wall) add_subdirectory (libusbmuxd) if (WITH_USBMUXD) add_subdirectory (daemon) - if (NOT WIN32 AND NOT APPLE) + if (${CMAKE_SYSTEM_NAME} MATCHES "Linux") add_subdirectory (udev) endif() endif() -- cgit v1.1-32-gdbae