Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Only use static Avro library
As the dynamic library is not available in most repositories, the static one should be used.
- Loading branch information
Showing
3 changed files
with
21 additions
and
1 deletion.
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,14 @@ | ||
| # This CMake file locates the libavro.a static library and the avro.h header | ||
| # | ||
| # The following variables are set: | ||
| # AVRO_FOUND - If the Avro C library was found | ||
| # AVRO_LIBRARIES - Path to the static library | ||
| # AVRO_INCLUDE_DIR - Path to Avro headers | ||
|
|
||
| find_path(AVRO_INCLUDE_DIRS avro.h) | ||
| find_library(AVRO_LIBRARIES libavro.a) | ||
|
|
||
| if (AVRO_INCLUDE_DIRS AND AVRO_LIBRARIES) | ||
| message(STATUS "Found Avro C libraries: ${AVRO_LIBRARIES}") | ||
| set(AVRO_FOUND TRUE) | ||
| endif() |
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