From 331c22f69c09da40c9b85a786f06c7795c2261b6 Mon Sep 17 00:00:00 2001 From: Oleksandr Tkachenko Date: Mon, 6 Jan 2020 14:29:55 +0100 Subject: [PATCH] Fix relic dependency in CMakeLists.txt 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. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3a67fe3..845077d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)