-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
* remove cpp headers and other c++ support file from installation if … #2765
base: master
Are you sure you want to change the base?
Conversation
…USE_CXX is not set
I already had a pull request like this, but this one is better. Now pkgconfig and cmake files are also not installed, if there is no c++ support. |
I'm not sure I like this idea. What's your motivation here? I definitely don't think this ought disable pkgconfig/CMake support, independently of your answer to the previous question. |
If you don't have a C++ compiler on your system and you can't build the c++ library, why would you want to install the headers or cmake/pkgconfig files supporting that ? You'd rather fail at compile time than link time. I really fail to see your argument here. Anway, this patch also corrects the C headers like 1a2,42
> ├── include
> │ ├── ncpp
> │ │ ├── Cell.hh
> │ │ ├── CellStyle.hh
> │ │ ├── Direct.hh
> │ │ ├── _exceptions.hh
> │ │ ├── FDPlane.hh
> │ │ ├── _flag_enum_operator_helpers.hh
> │ │ ├── _helpers.hh
> │ │ ├── internal
> │ │ │ └── Helpers.hh
> │ │ ├── Menu.hh
> │ │ ├── MultiSelector.hh
> │ │ ├── NCAlign.hh
> │ │ ├── NCBox.hh
> │ │ ├── NCKey.hh
> │ │ ├── NCLogLevel.hh
> │ │ ├── ncpp.hh
> │ │ ├── NotCurses.hh
> │ │ ├── Palette.hh
> │ │ ├── Pile.hh
> │ │ ├── Plane.hh
> │ │ ├── Plot.hh
> │ │ ├── Progbar.hh
> │ │ ├── Reader.hh
> │ │ ├── Reel.hh
> │ │ ├── Root.hh
> │ │ ├── Selector.hh
> │ │ ├── Subproc.hh
> │ │ ├── TabletCallback.hh
> │ │ ├── Tablet.hh
> │ │ ├── Utilities.hh
> │ │ ├── Visual.hh
> │ │ └── Widget.hh
> │ └── notcurses
> │ ├── direct.h
> │ ├── nckeys.h
> │ ├── ncport.h
> │ ├── ncseqs.h
> │ ├── notcurses.h
> │ └── version.h
12a54
> │ ├── libnotcurses++.a
20a63
> │ ├── libnotcurses++.so -> libnotcurses++.so.3
21a65
> │ ├── libnotcurses++.so.3 -> libnotcurses++.so.3.0.9
22a67
> │ ├── libnotcurses++.so.3.0.9
38c83
< 9 directories, 26 files
---
> 13 directories, 67 files |
we're not saying we don't have a c++ compiler (or won't have one in the future) when we use
this is a definite issue, nice catch |
confirmed |
Currently when Building the notcurses library as C++ (with mangling) wouldn't even work IMO, because you're exporting all your symbols as C with: #ifdef __cplusplus
extern "C" { The current |
…USE_CXX is not set