Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ install(TARGETS ${_libname}
INCLUDES DESTINATION include/${PROJECT_NAME}
)

find_package(ZLIB REQUIRED "1.0")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be find_package(ZLIB "1.0" REQUIRED)?

Copy link

@MichaIng MichaIng Jan 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, at least for newer cmake, it needs to be that way round: https://cmake.org/cmake/help/latest/command/find_package.html

Suggested change
find_package(ZLIB REQUIRED "1.0")
find_package(ZLIB "1.0" REQUIRED)


foreach(_comp ${_selected_components})
# Install targets and headers
string(TOLOWER ${_comp} _comp_lower)
Expand Down