Skip to content

Commit

Permalink
fix build issue with empty dummy.c in sundials (to allow a parent lib)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcschaff committed Feb 9, 2024
1 parent c4bfc0d commit d3a8cda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ExpressionParser/DivideByZeroException.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef DIVIDEBYZEROEXCEPTION_H
#define DIVIDEBYZEROEXCEPTION_CPP
#define DIVIDEBYZEROEXCEPTION_H

#include "ExpressionException.h"

Expand Down
2 changes: 1 addition & 1 deletion sundials/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d3a8cda

Please sign in to comment.