Skip to content

Commit

Permalink
rimage/cmake: add find_package(OpenSSL 3 ...)
Browse files Browse the repository at this point in the history
Support unusual locations and deprecates OpenSSL 1 (as previously
attempted in thesofproject/rimage#157)

Will remove the OpenSSL 1 code later to give people some time to
upgrade.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
  • Loading branch information
marc-hb committed Oct 18, 2023
1 parent 868711c commit 4e60c9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/rimage/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ if(${CMAKE_HOST_WIN32})
endif()
endif()

target_link_libraries(rimage PRIVATE crypto)
find_package(OpenSSL 3...3.9999 REQUIRED)
target_link_libraries(rimage PRIVATE OpenSSL::Crypto)

target_include_directories(rimage PRIVATE
src/include/
Expand Down

0 comments on commit 4e60c9f

Please sign in to comment.