Skip to content

Commit

Permalink
Fix relic dependency in CMakeLists.txt
Browse files Browse the repository at this point in the history
ENCRYPTO_utils ignores the relic_s target if the `encrypto_utils` target is explicitly specified, e.g., as `cmake --build . --target encrypto_utils`. Adding the correct relic target name as dependency for the imported `RELIC::relic` target fixes this problem.
  • Loading branch information
Oleksandr-Tkachenko authored and lenerd committed Jan 6, 2020
1 parent 985354c commit 331c22f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ set_target_properties(RELIC::relic PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}/extern/relic/include;${CMAKE_CURRENT_SOURCE_DIR}/extern/relic/include/low;${CMAKE_CURRENT_BINARY_DIR}/extern/relic/include"
)

target_link_libraries(RELIC::relic INTERFACE relic_s)

add_subdirectory(src)

if(ENCRYPTO_UTILS_BUILD_TESTS)
Expand Down

0 comments on commit 331c22f

Please sign in to comment.