Skip to content
Snippets Groups Projects
Commit efa28546 authored by Mathieu Westphal's avatar Mathieu Westphal
Browse files

CMake: Fix cdi-config.cmake for CMake compatibility

Note: This was tested only with CMake, not with Makefile
parent de26488d
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !134. Comments created here will be created in the context of that merge request.
# Config file for lib CDI project
# run cmake with CDI_DIR pointing to the directory containing this file.
# set(CDI_ROOT_DIR "${CMAKE_CURRENT_LIST_DIR}/../../..")
set(CDI_ROOT_DIR "${CMAKE_CURRENT_LIST_DIR}/../../..")
# use following line instead of previous if this file can be configured
set(CDI_ROOT_DIR "@prefix@")
# set(CDI_ROOT_DIR "@prefix@")
find_path(CDI_INCLUDE_DIRECTORY
cdi.h
......@@ -15,7 +15,7 @@ find_path(CDI_INCLUDE_DIRECTORY
mark_as_advanced(CDI_INCLUDE_DIRECTORY)
find_library(CDI_LIBRARY
NAMES cdi
NAMES cdilib
PATHS "${CDI_ROOT_DIR}/lib"
# use following line instead of previous if this file can be configured
# PATHS "@libdir@"
......
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