Skip to content

Commit

Permalink
Make FindInih also make finding reader required
Browse files Browse the repository at this point in the history
* Fixes issue on alpine where inih-dev is installed without inih-inireader-dev
* #2443 (comment)

Signed-off-by: Ryan Friedman <ryan.friedman+github@avinc.com>
(cherry picked from commit 16c533f)
  • Loading branch information
Ryanf55 authored and mergify[bot] committed Jul 24, 2023
1 parent 4dd9cd5 commit 508f8ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/Findinih.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ mark_as_advanced(inih_LIBRARY)
mark_as_advanced(inih_inireader_INCLUDE_DIR)
mark_as_advanced(inih_inireader_LIBRARY)

find_package_handle_standard_args(inih REQUIRED_VARS inih_LIBRARY inih_INCLUDE_DIR)
find_package_handle_standard_args(inih REQUIRED_VARS inih_LIBRARY inih_INCLUDE_DIR inih_inireader_INCLUDE_DIR)

if(NOT inih_FOUND)
message(FATAL_ERROR "inih library not found")
Expand Down

0 comments on commit 508f8ab

Please sign in to comment.