From 419a7c90ef2d79ba08dabac651496ae27416c9f2 Mon Sep 17 00:00:00 2001 From: Carlos Mastalli Date: Fri, 4 Aug 2023 12:29:32 +0100 Subject: [PATCH] [codegen] Fixed compilation issue --- benchmark/CMakeLists.txt | 2 +- unittest/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/benchmark/CMakeLists.txt b/benchmark/CMakeLists.txt index 820c31d932..fc45cd1f3a 100644 --- a/benchmark/CMakeLists.txt +++ b/benchmark/CMakeLists.txt @@ -20,7 +20,7 @@ endforeach(BENCHMARK_NAME ${${PROJECT_NAME}_BENCHMARK}) if(BUILD_WITH_CODEGEN_SUPPORT) foreach(BENCHMARK_NAME ${${PROJECT_NAME}_CODEGEN_BENCHMARK}) - target_link_libraries(${BENCHMARK_NAME} ${CMAKE_DL_LIBS}) + target_link_libraries(${BENCHMARK_NAME} ${CMAKE_DL_LIBS} ${cppad_LIBRARY}) endforeach(BENCHMARK_NAME ${${PROJECT_NAME}_CODEGEN_BENCHMARK}) endif() diff --git a/unittest/CMakeLists.txt b/unittest/CMakeLists.txt index 3728953d61..8146887749 100644 --- a/unittest/CMakeLists.txt +++ b/unittest/CMakeLists.txt @@ -85,6 +85,6 @@ endforeach(NAME ${${PROJECT_NAME}_CPP_TESTS}) if(BUILD_WITH_CODEGEN_SUPPORT) foreach(TEST_NAME ${${PROJECT_NAME}_CODEGEN_CPP_TESTS}) - target_link_libraries(${TEST_NAME} ${CMAKE_DL_LIBS}) + target_link_libraries(${TEST_NAME} ${CMAKE_DL_LIBS} ${cppad_LIBRARY}) endforeach() endif()