Skip to content
Snippets Groups Projects
Commit 36f9e72b 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 95f4b01a
No related branches found
No related tags found
2 merge requests!137CMake: Fix cdi-config.cmake for CMake compatibility,!134CMake: Improvements from kitware
# 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