File tree 2 files changed +11
-3
lines changed
2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -103,11 +103,17 @@ target_link_options(${PROJECT_NAME} BEFORE PRIVATE
103
103
${LTM_LD_FLAGS}
104
104
)
105
105
106
+ set (PUBLIC_HEADERS tommath.h)
107
+ set (C89 False CACHE BOOL "(Usually maintained automatically) Enable when the library is in c89 mode to package the correct header files on install" )
108
+ if (C89)
109
+ list (APPEND PUBLIC_HEADERS tommath_c89.h)
110
+ endif ()
111
+
106
112
set_target_properties (${PROJECT_NAME} PROPERTIES
107
113
OUTPUT_NAME tommath
108
114
VERSION ${PROJECT_VERSION}
109
115
SOVERSION ${PROJECT_VERSION_MAJOR}
110
- PUBLIC_HEADER tommath.h
116
+ PUBLIC_HEADER " ${PUBLIC_HEADERS} "
111
117
)
112
118
113
119
option (COMPILE_LTO "Build with LTO enabled" )
Original file line number Diff line number Diff line change 173
173
-e 's/uint\([0-9][0-9]*\)_t/mp_u\1/g' \
174
174
-e 's/int\([0-9][0-9]*\)_t/mp_i\1/g' \
175
175
-e 's/__func__/MP_FUNCTION_NAME/g' \
176
- *.c tommath.h tommath_private.h demo/*.c demo/*.h etc/*.c
176
+ -e 's/set(C89 False/set(C89 True/g' \
177
+ *.c tommath.h tommath_private.h demo/*.c demo/*.h etc/*.c CMakeLists.txt
177
178
178
179
c99 :
179
180
@echo " Applying substitutions for c99 compatibility..."
196
197
-e 's/mp_u\([0-9][0-9]*\)/uint\1_t/g' \
197
198
-e 's/mp_i\([0-9][0-9]*\)/int\1_t/g' \
198
199
-e 's/MP_FUNCTION_NAME/__func__/g' \
199
- *.c tommath.h tommath_private.h demo/*.c demo/*.h etc/*.c
200
+ -e 's/set(C89 True/set(C89 False/g' \
201
+ *.c tommath.h tommath_private.h demo/*.c demo/*.h etc/*.c CMakeLists.txt
200
202
201
203
astyle :
202
204
@echo " * run astyle on all sources"
You can’t perform that action at this time.
0 commit comments