diff --git a/cmake_modules/FindUUID.cmake b/cmake_modules/FindUUID.cmake index 31bad4c..2532829 100755 --- a/cmake_modules/FindUUID.cmake +++ b/cmake_modules/FindUUID.cmake @@ -76,18 +76,18 @@ else(UUID_LIBRARIES AND UUID_INCLUDE_DIRS) /opt/lib /usr/freeware/lib64) - if(NOT UUID_LIBRARY AND BSD) + if(NOT UUID_LIBRARY AND (BSD OR APPLE)) set(UUID_LIBRARY "") - endif(NOT UUID_LIBRARY AND BSD) + endif() set(UUID_INCLUDE_DIRS ${UUID_INCLUDE_DIR}) set(UUID_LIBRARIES ${UUID_LIBRARY}) if(UUID_INCLUDE_DIRS) - if(BSD OR UUID_LIBRARIES) + if((BSD OR APPLE) OR UUID_LIBRARIES) set(UUID_FOUND TRUE) - endif(BSD OR UUID_LIBRARIES) - endif(UUID_INCLUDE_DIRS) + endif() + endif() if(UUID_FOUND) if(NOT UUID_FIND_QUIETLY)