diff --git a/CMakeLists.txt b/CMakeLists.txt
index c59e16b49a42541996247773aca2b5c1ced97e15..ecb5396bca45e725e74fb516341572bbc5c83a62 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -17,7 +17,8 @@ if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
 endif ()
 
 # Find the relic library.
-find_library(RELIC_LIB relic)
+find_library(RELIC_LIB_SYM relic_sym)
+find_library(RELIC_LIB_ASYM relic_asym)
 
 # Add desired subdirectories.
 add_subdirectory(src)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 2dad76fb6d7412ec5e10f5eb3f64f58030e92044..4b327cfceadb76907395bc88a6d1c7e976f36351 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -8,7 +8,8 @@ add_library(ppann_lib field.cpp group.cpp vector.cpp matrix.cpp ipre.cpp hnsw.cp
 target_include_directories(ppann_lib PUBLIC ../include)
 
 # This depends on the relic library.
-target_link_libraries(ppann_lib PRIVATE ${RELIC_LIB})
+target_link_libraries(ppann_lib PRIVATE ${RELIC_LIB_SYM})
+target_link_libraries(ppann_lib PRIVATE ${RELIC_LIB_ASYM})
 
 # IDEs should put the headers in a nice place.
 source_group(