Skip to content

Commit

Permalink
FindLibCrypto.cmake is easier to consume. (aws#2330)
Browse files Browse the repository at this point in the history
Currently, every downstream consumer needs to modify their CMAKE_MODULE_PATH to pick up FindLibCrypto.cmake. Instead, have s2n automatically modify the CMAKE_MODULE_PATH for them.
  • Loading branch information
graebm authored Nov 4, 2020
1 parent f0872e8 commit 9f8b2b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,6 @@ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config.cmake"
COMPONENT Development)

install(FILES "cmake/modules/FindLibCrypto.cmake"
DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/"
DESTINATION "${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}/cmake/modules/"
COMPONENT Development)

1 change: 1 addition & 0 deletions cmake/s2n-config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ if (NOT MSVC)
find_package(Threads REQUIRED)
endif()

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/modules")
find_dependency(LibCrypto)

if (BUILD_SHARED_LIBS)
Expand Down

0 comments on commit 9f8b2b6

Please sign in to comment.