Skip to content
Snippets Groups Projects
Commit a993fad2 authored by Hannes Weisbach's avatar Hannes Weisbach Committed by Horst Schirmeier
Browse files

cmake: search for libudis86 in non-standard dirs

Adds LIBUDIS86_PREFIX_DIR variable, to search for LIBUDIS86 in the
specified prefix. This makes it easier/possible to have libudis86 in
non-standard locations, for example when you don't have root.

Change-Id: Idaf86c9e03b2d4c35f60c3dc3b6da0d8efe97795
parent 614531ed
No related branches found
No related tags found
No related merge requests found
......@@ -6,10 +6,10 @@
# LIBUDIS86_LIBRARIES - Link these to use libudis86
# LIBUDIS86_DEFINITIONS - Compiler switches required for using libudis86
FIND_PATH(LIBUDIS86_INCLUDE_DIRS udis86.h)
FIND_PATH(LIBUDIS86_INCLUDE_DIRS udis86.h PATHS ${LIBUDIS86_PREFIX_DIR}/include)
FIND_LIBRARY(LIBUDIS86_LIBRARIES NAMES udis86
PATHS /usr/lib /usr/local/lib /opt/local/lib
PATHS /usr/lib /usr/local/lib /opt/local/lib ${LIBUDIS86_PREFIX_DIR}/lib
ENV LIBRARY_PATH # PATH and LIB will also work
ENV LD_LIBRARY_PATH)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment