Skip to content

Commit

Permalink
cmake fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ladnir committed Jun 12, 2024
1 parent b1d1851 commit 6490267
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
5 changes: 4 additions & 1 deletion cmake/Config.cmake.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
@PACKAGE_INIT@

message("found libOTe: ${CMAKE_CURRENT_LIST_FILE}")

if(NOT LIBOTE_FIND_QUIETLY)
message("libOTeConfig.cmake: ${CMAKE_CURRENT_LIST_DIR}")
endif()

include("${CMAKE_CURRENT_LIST_DIR}/buildOptions.cmake")
find_package(cryptoTools REQUIRED HINTS "${CMAKE_CURRENT_LIST_DIR}/.." ${CMAKE_CURRENT_LIST_DIR})
Expand Down
10 changes: 9 additions & 1 deletion cmake/libOTeConfig.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# these are just pass through config file for the ones that are placed in the build directory.



#used to find coproto, macoro
set(PUSHED_CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH})
set(CMAKE_PREFIX_PATH "${COPROTO_BUILD_DIR}/macoro;${CMAKE_PREFIX_PATH}")
set(CMAKE_PREFIX_PATH "${COPROTO_BUILD_DIR}/coproto;${CMAKE_PREFIX_PATH}")
#message("\n\nhere ${CMAKE_CURRENT_LIST_FILE}\nCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH}\n\n")

include("${CMAKE_CURRENT_LIST_DIR}/libOTePreamble.cmake")
include("${LIBOTE_BUILD_DIR}/libOTeConfig.cmake")


set(CMAKE_PREFIX_PATH ${PUSHED_CMAKE_PREFIX_PATH})
2 changes: 1 addition & 1 deletion cryptoTools
6 changes: 3 additions & 3 deletions libOTe_Tests/cmakeTests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ find_package(libOTe REQUIRED HINTS ${LIBOTE_HINT}
#no_sse
#no_avx
#bitpolymul
simplestot
mrr
#simplestot
#mrr
#mrr_twist
mr
#mr
#mr_kyber
kos
iknp
Expand Down

0 comments on commit 6490267

Please sign in to comment.