Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'SQLiteCpp/SQLiteCpp.h' file not found #267

Closed
bear24rw opened this issue Jan 29, 2020 · 10 comments
Closed

'SQLiteCpp/SQLiteCpp.h' file not found #267

bear24rw opened this issue Jan 29, 2020 · 10 comments
Assignees
Labels

Comments

@bear24rw
Copy link

Master branch seems to have broken header file exporting:

git clone --recursive https://github.com/SRombauts/SQLiteCpp_Example.git
cd SQLiteCpp_Example/SQLiteCpp
git checkout master
cd ..
mkdir build
cd build
cmake ..
make
/tmp/SQLiteCpp_Example/src/main.cpp:17:10: fatal error: 'SQLiteCpp/SQLiteCpp.h' file not found
#include <SQLiteCpp/SQLiteCpp.h>
         ^~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

It works correctly with the tagged version in the example project: SQLiteCpp @ 8485bb7

@SRombauts SRombauts self-assigned this Jan 29, 2020
@SRombauts SRombauts added the bug label Jan 29, 2020
@SRombauts
Copy link
Owner

Hello,
can you please give a bit of context?
All CI builds are green so I suspect that it is something specific to your OS, compiler, or perhaps CMake version.

@SRombauts
Copy link
Owner

Ok, I get it, let me try the example

@SRombauts
Copy link
Owner

Thanks for reporting @bear24rw!

Looking at recent changes, it's easy to see that it's coming from
91fe2d7 Merge pull request #234 support for external sqlite3 from BioDataAnalysis/emmenlau_support_external_sqlite

@emmenlau any inputs on this?

Then, I should find a way to test all this with a Github Action CI in this repository, so we would keep track this on all pull requests!

@bear24rw
Copy link
Author

Thanks for the fast fix!

@emmenlau
Copy link
Contributor

I think the fix may introduce a code duplication in cmake: 76bd3b2#commitcomment-37028296
An idea for a simpler solution is also given in the comment. Let me know if I should make a PR for this tomorrow?

@SRombauts
Copy link
Owner

Sorry, I was too tired, but I have fixed my fix thanks to your feedback :)

@emmenlau
Copy link
Contributor

Awesome, thanks for your always quick support @SRombauts ! Let me know if there are sometimes cmake questions, I may find a bit of time to help...

@SRombauts
Copy link
Owner

SRombauts commented Jan 30, 2020

Ah, sadly not always quick, I have a newborn baby at home!

Right now I think that the project is nearly in a good shape for a first 3.0 release: my only one question is about the cxx standard flag.
We need to express a minimum version, not a specific required version
There is already a PR on this, would you please have a look at it?

Edit: Right now my best guess would be to simply remove the REQUIRED flag

@emmenlau
Copy link
Contributor

I guess its the #239 about c++20?

@emmenlau
Copy link
Contributor

Here is a proposal: #269. In my humble opinion, this new PR adds the best of all worlds. It does not need a lot of extra logic, but allows users to specify any c++ standard. It still enforces the bare minimum requirement (c++11 if tests are enabled).

What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants