-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- use FIND_PACKAGE(LIBAIO) to find libaio - Use standard CMake conventions in Find{PMEM,URING}.cmake - Drop the LIB from LIB{PMEM,URING}_{INCLUDE_DIR,LIBRARIES} It is cleaner, and consistent with how other packages are handled in CMake. e.g successful FIND_PACKAGE(PMEM) now sets PMEM_FOUND, PMEM_LIBRARIES, PMEM_INCLUDE_DIR, not LIBPMEM_{FOUND,LIBRARIES,INCLUDE_DIR}. - Decrease the output. use FIND_PACKAGE with QUIET argument. - for Linux packages, either liburing, or libaio is required If liburing is installed, libaio does not need to be present . Use FIND_PACKAGE([LIBAIO|URING] REQUIRED) if either library is required.
- Loading branch information
Showing
7 changed files
with
36 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
find_path(LIBAIO_INCLUDE_DIR NAMES libaio.h) | ||
find_library(LIBAIO_LIBRARIES NAMES aio) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
FIND_PACKAGE_HANDLE_STANDARD_ARGS( | ||
LIBAIO DEFAULT_MSG | ||
LIBAIO_LIBRARIES LIBAIO_INCLUDE_DIR) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
find_path(LIBPMEM_INCLUDE_DIR NAMES libpmem.h) | ||
find_library(LIBPMEM_LIBRARIES NAMES pmem) | ||
find_path(PMEM_INCLUDE_DIR NAMES libpmem.h) | ||
find_library(PMEM_LIBRARIES NAMES pmem) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
FIND_PACKAGE_HANDLE_STANDARD_ARGS( | ||
PMEM DEFAULT_MSG | ||
LIBPMEM_LIBRARIES LIBPMEM_INCLUDE_DIR) | ||
PMEM_LIBRARIES PMEM_INCLUDE_DIR) | ||
|
||
mark_as_advanced(LIBPMEM_INCLUDE_DIR LIBPMEM_LIBRARIES) | ||
mark_as_advanced(PMEM_INCLUDE_DIR PMEM_LIBRARIES) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
find_path(LIBURING_INCLUDE_DIR NAMES liburing.h) | ||
find_library(LIBURING_LIBRARIES NAMES uring) | ||
find_path(URING_INCLUDE_DIR NAMES liburing.h) | ||
find_library(URING_LIBRARIES NAMES uring) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
FIND_PACKAGE_HANDLE_STANDARD_ARGS( | ||
URING DEFAULT_MSG | ||
LIBURING_LIBRARIES LIBURING_INCLUDE_DIR) | ||
URING_LIBRARIES URING_INCLUDE_DIR) | ||
|
||
mark_as_advanced(LIBURING_INCLUDE_DIR LIBURING_LIBRARIES) | ||
mark_as_advanced(URING_INCLUDE_DIR URING_LIBRARIES) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters