From d3a8cdab20ec93c3a57f886e084107383496d02a Mon Sep 17 00:00:00 2001 From: Jim Schaff Date: Fri, 9 Feb 2024 01:08:36 -0500 Subject: [PATCH] fix build issue with empty dummy.c in sundials (to allow a parent lib) --- ExpressionParser/DivideByZeroException.h | 2 +- sundials/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ExpressionParser/DivideByZeroException.h b/ExpressionParser/DivideByZeroException.h index 66aa0be5d..33bc0f630 100644 --- a/ExpressionParser/DivideByZeroException.h +++ b/ExpressionParser/DivideByZeroException.h @@ -1,5 +1,5 @@ #ifndef DIVIDEBYZEROEXCEPTION_H -#define DIVIDEBYZEROEXCEPTION_CPP +#define DIVIDEBYZEROEXCEPTION_H #include "ExpressionException.h" diff --git a/sundials/CMakeLists.txt b/sundials/CMakeLists.txt index 31474739c..4d322a545 100644 --- a/sundials/CMakeLists.txt +++ b/sundials/CMakeLists.txt @@ -5,7 +5,7 @@ add_subdirectory(src/ida) add_subdirectory(src/nvec_ser) add_subdirectory(src/sundials) -file(WRITE ${CMAKE_BINARY_DIR}/dummy.c "") +file(WRITE ${CMAKE_BINARY_DIR}/dummy.c "const char* sundials_dummy = \"dummy\";") add_library(sundials ${CMAKE_BINARY_DIR}/dummy.c) target_link_libraries(sundials sundials_cvode sundials_ida sundials_nvecserial sundials_lib)