From df86c38cdc35065880e75faa4cedc2faa4fc958b Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Tue, 12 Aug 2025 07:05:18 -0600 Subject: [PATCH] Use cerf::cerfcpp target with libcerf 3 (fixes #65) --- src/CMakeLists.txt | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 9894bf6..6e9fc94 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -80,10 +80,17 @@ if (LIBECPINT_USE_CERF) endif() endif() target_compile_definitions(ecpint PRIVATE USING_CERF=1) - target_link_libraries(ecpint - PRIVATE - cerf::cerf - ) + if(cerf_VERSION VERSION_GREATER_EQUAL "3") + target_link_libraries(ecpint + PRIVATE + cerf::cerfcpp + ) + else() + target_link_libraries(ecpint + PRIVATE + cerf::cerf + ) + endif() else() message(STATUS "${Cyan}Using Faddeeva${ColourReset}: internal") target_link_libraries(ecpint