Referencing #924 , this PR splits the two issues brought on to a smaller to digest change. What this does is removes the prefix “include/” when referencing the local library header files.
e.g: from:
0#include "include/secp256k1.h"
to:
0#include "secp256k1.h"
Rationale besides styling and consistency across other files in the repo, it makes it easier for outside builds to properly locate the headers.
A live example seen here when attempting to build this library within bitcoin repo:
0[ 14%] Building CXX object leveldb/CMakeFiles/leveldb.dir/util/bloom.cc.o
1/tmp/bitcoin/src/secp256k1/src/secp256k1.c:7:10: fatal error: include/secp256k1.h: No such file or directory
2 7 | #include "include/secp256k1.h"
3 | ^~~~~~~~~~~~~~~~~~~~~
4compilation terminated.
5make[2]: *** [secp256k1/CMakeFiles/Secp256k1.dir/build.make:76: secp256k1/CMakeFiles/Secp256k1.dir/src/secp256k1.c.o] Error 1
6make[1]: *** [CMakeFiles/Makefile2:537: secp256k1/CMakeFiles/Secp256k1.dir/all] Error 2
7make[1]: *** Waiting for unfinished jobs....