notcurses icon indicating copy to clipboard operation
notcurses copied to clipboard

No headers are installed with `USE_CXX=off`

Open kmarius opened this issue 2 years ago • 2 comments

I am running the commands as in the PKGBUILD but with -DUSE_CXX=off (and without the check, and the ffi, which both fail in this case), resulting in a package without headers.

kmarius avatar Aug 21 '22 13:08 kmarius

Looks like this https://github.com/dankamongmen/notcurses/blob/ab8590d7b3a7a3129a603e4235ff50eb2b0cfd9f/CMakeLists.txt#L577 is inside a large if(${USE_CXX}) block.

kmarius avatar Aug 21 '22 13:08 kmarius

I had this same problem. I'm utterly incompetent at cmake, so I'm glad someone else reported it. I've been building the entire thing into an intermediate install directory and picking out the C-related parts that I care about as part of my do script.

I found that there is an endif() fairly close to that headers block, which I moved. The result does build, and it puts the C headers in the install dir without having to USE_CXX. I'd like to be able to say the library works, but I haven't been able to make that happen. (That was true even with the CXX stuff being built, so I think it's an unrelated item. I can't even get the blue house demo to work from the book online-- somehow stdin is always closed immediately.)

aghast avatar Jan 24 '24 20:01 aghast

this was fixed the other day in d88f40b836cd7e93c11e6d3e724b7b1eb43263c0, sorry it took so long for me to see this! thanks for the report!

dankamongmen avatar Mar 04 '24 20:03 dankamongmen