Skip to content

Commit

Permalink
Merge ee49e65 into a00d500
Browse files Browse the repository at this point in the history
  • Loading branch information
imciner2 committed May 6, 2021
2 parents a00d500 + ee49e65 commit ba7652b
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Expand Up @@ -78,6 +78,12 @@ endif()
#problems when calling QDLDL from C++
set(QDLDL_BOOL_TYPE "unsigned char")

# Generate header file with the global options
# ---------------------------------------------
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/configure/qdldl_configure.h.in
${CMAKE_CURRENT_SOURCE_DIR}/include/qdldl_configure.h
NEWLINE_STYLE LF)

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/configure/qdldl_types.h.in
${CMAKE_CURRENT_SOURCE_DIR}/include/qdldl_types.h
NEWLINE_STYLE LF)
Expand Down
21 changes: 21 additions & 0 deletions configure/qdldl_configure.h.in
@@ -0,0 +1,21 @@
#ifndef QDLDL_CONFIGURE_H
# define QDLDL_CONFIGURE_H

# ifdef __cplusplus
extern "C" {
# endif /* ifdef __cplusplus */

/* DEBUG */
#cmakedefine DEBUG

/* DFLOAT */
#cmakedefine DFLOAT

/* DLONG */
#cmakedefine DLONG

# ifdef __cplusplus
}
# endif /* ifdef __cplusplus */

#endif /* ifndef QDLDL_CONFIGURE_H */
1 change: 1 addition & 0 deletions include/.gitignore
@@ -1,2 +1,3 @@
qdldl_configure.h
qdldl_types.h
qdldl_version.h

0 comments on commit ba7652b

Please sign in to comment.