Commit 2b6bc8e8 authored by Marc Vef's avatar Marc Vef
Browse files

Adding more dependencies (mogon doesnt have dev packages ...) throwing out snappy

parent 941be245
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ find_path(BMI_INCLUDE_DIR bmi.h

find_library(BMI_LIBRARY bmi
        HINTS
        $ENV{HOME}/adafs/install/lib
        $ENV{HOME}/adafs/install
        ${BMI_DIR}
        $ENV{HOME}/opt
        /usr
+3 −0
Original line number Diff line number Diff line
@@ -29,6 +29,9 @@ if (UNIX)
    FIND_PATH(GFlags_ROOT_DIR
            libgflags.so
            HINTS
            $ENV{HOME}/adafs/install
            PATH_SUFFIXES lib
            PATH_SUFFIXES lib64
            /usr/local/lib
            )
endif (UNIX)
+6 −4
Original line number Diff line number Diff line
@@ -11,8 +11,9 @@ else ()
    find_path(
            LIBEV_INCLUDE_DIR
            NAMES ev.h
            HINTS ${LIBEV_ROOT_DIR}
            PATH_SUFFIXES include
            HINTS
            ${LIBEV_ROOT_DIR}
            $ENV{HOME}/adafs/install
            $ENV{HOME}/opt
            /usr
            /usr/local
@@ -25,8 +26,9 @@ else ()
    find_library(
            LIBEV_LIBRARY
            NAME ev
            HINTS ${LIBEV_ROOT_DIR}
            PATH_SUFFIXES ${CMAKE_INSTALL_LIBDIR}
            HINTS
            ${LIBEV_ROOT_DIR}
            $ENV{HOME}/adafs/install
            $ENV{HOME}/opt
            /usr
            /usr/local
+4 −2
Original line number Diff line number Diff line
@@ -11,21 +11,23 @@ find_path(
        NAMES "zstd.h"
        HINTS
        $ENV{HOME}/opt
        $ENV{HOME}/adafs/install
        /usr
        /usr/local
        /opt/
        PATH SUFFIXES include
        PATH_SUFFIXES include
)

find_library(
        ZSTD_LIBRARY
        NAMES zstd
        HINTS
        $ENV{HOME}/adafs/install
        $ENV{HOME}/opt
        /usr
        /usr/local
        /opt/
        PATH SUFFIXES lib
        PATH_SUFFIXES lib
)

set(ZSTD_LIBRARIES ${ZSTD_LIBRARY})
+41 −31
Original line number Diff line number Diff line
find_path(snappy_DIR
        HINTS
        /usr
        /usr/local
        /usr/local/adafs/
        $ENV{HOME}/adafs/install
        )

find_path(snappy_INCLUDE_DIR snappy.h
        HINTS
        $ENV{HOME}/adafs/install
        ${snappy_DIR}
        $ENV{HOME}/opt
        /usr
        /usr/local
        /usr/local/adafs
        /opt
        PATH_SUFFIXES include
        PATH_SUFFIXES include/snappy
        )

# This code is released under the
# Apache License Version 2.0 http://www.apache.org/licenses/.
#
# Copyright (c) 2012 Louis Dionne
#
# Find snappy compression library and includes. This module defines:
#   snappy_INCLUDE_DIRS - The directories containing snappy's headers.
#   snappy_LIBRARIES    - A list of snappy's libraries.
#   snappy_FOUND        - Whether snappy was found.
#
# This module can be controlled by setting the following variables:
#   snappy_ROOT - The root directory where to find snappy. If this is not
#                 set, the default paths are searched.
find_library(snappy_LIBRARY snappy
        HINTS
        $ENV{HOME}/adafs/install
        ${snappy_DIR}
        $ENV{HOME}/opt
        /usr
        /usr/local
        /usr/local/adafs
        /opt/
        PATH_SUFFIXES lib
        PATH_SUFFIXES lib/snappy
        )

if (NOT snappy_ROOT)
    find_path(snappy_INCLUDE_DIRS snappy.h)
    find_library(snappy_LIBRARIES NAMES snappy)
else ()
    find_path(snappy_INCLUDE_DIRS snappy.h NO_DEFAULT_PATH PATHS ${snappy_ROOT})
    find_library(snappy_LIBRARIES NAMES snappy NO_DEFAULT_PATH PATHS ${snappy_ROOT})
endif ()
set(snappy_INCLUDE_DIRS ${snappy_INCLUDE_DIR})
set(snappy_LIBRARIES ${snappy_LIBRARY})

if (snappy_INCLUDE_DIRS AND snappy_LIBRARIES)
    set(snappy_FOUND TRUE)
else ()
    set(snappy_FOUND FALSE)
    set(snappy_INCLUDE_DIR)
    set(snappy_LIBRARIES)
endif ()

find_package_handle_standard_args(snappy DEFAULT_MSG
        snappy_INCLUDE_DIRS snappy_LIBRARIES
        )
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(snappy DEFAULT_MSG snappy_LIBRARY snappy_INCLUDE_DIR)

mark_as_advanced(snappy_LIBRARIES snappy_INCLUDE_DIRS)
 No newline at end of file
mark_as_advanced(
        snappy_DIR
        snappy_LIBRARY
        snappy_INCLUDE_DIR
)
 No newline at end of file
Loading