-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
34 additions
and
5 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
include(FindPackageHandleStandardArgs) | ||
|
||
find_path(PCREPOSIX_INCLUDE_DIR NAMES pcreposix.h) | ||
find_library(PCREPOSIX_LIBRARY NAMES pcreposix) | ||
find_library(PCRE_LIBRARY NAMES pcre) | ||
|
||
message("PCREPOSIX_LIBRARY: ${PCREPOSIX_LIBRARY}") | ||
message("PCRE_LIBRARY: ${PCRE_LIBRARY}") | ||
|
||
find_package_handle_standard_args(PCREPOSIX DEFAULT_MSG PCREPOSIX_LIBRARY PCREPOSIX_INCLUDE_DIR) | ||
|
||
if(PCREPOSIX_FOUND) | ||
set(PCREPOSIX_LIBRARIES ${PCREPOSIX_LIBRARY}) | ||
set(PCREPOSIX_INCLUDE_DIRS ${PCREPOSIX_INCLUDE_DIR}) | ||
else() | ||
set(PCREPOSIX_LIBRARIES) | ||
set(PCREPOSIX_INCLUDE_DIRS) | ||
endif() | ||
|
||
mark_as_advanced(PCREPOSIX_INCLUDE_DIRS PCREPOSIX_LIBRARIES) | ||
|