mirror of
https://github.com/plasma-umass/coz.git
synced 2024-09-11 04:55:25 +03:00
Simplified because we know the paths
Library path still partially worked out as it could be lib or lib64
This commit is contained in:
parent
55c97e3ba8
commit
8229ecf7e2
@ -1,18 +1,13 @@
|
||||
|
||||
|
||||
SET(COZDIR destdir)
|
||||
set(COZDIR destdir)
|
||||
|
||||
find_path(COZ_INCLUDE_DIR
|
||||
NAMES coz.h
|
||||
PATHS ${COZ_DIR}
|
||||
)
|
||||
set(COZ_BIN ${COZDIR}/bin/coz)
|
||||
set(COZ_INCLUDE_DIR ${COZDIR}/include)
|
||||
get_filename_component(LIBRARY_DIR ${CMAKE_CURRENT_LIST_FILE} DIRECTORY)
|
||||
set(COZ_LIBRARY ${LIBRARY_DIR}/libcoz.so)
|
||||
|
||||
find_file(COZ_LIBRARY
|
||||
NAMES libcoz.so
|
||||
PATHS ${COZ_DIR}
|
||||
)
|
||||
|
||||
set(COZ_FOUND (COZ_INCLUDE_DIR AND COZ_LIBRARY))
|
||||
set(COZ_FOUND ON)
|
||||
|
||||
message(INFO " ${COZ_INCLUDE_DIR} ${COZ_LIBRARY} ${COZ_FOUND}")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user