Open certik opened 9 years ago
+ '-D CURSES_NCURSES_LIBRARY:FILEPATH=${NCURSES_DIR}/lib/libncurses.so',
Just be careful about these hard-codes. Library names are not always the same across platforms/versions.
I know, the best approach is to only give cmake a path to the .so (or dylib/dll) library, and it finds it itself. That's what I do for my projects. But somehow I can't figure out how to convince cmake to do this.
Looking at the CMake release scripts, we set CURSES_CURSES_LIBRAR, not CURSES_NCURSES_LIBRARY
To do that, we need to convince cmake to use our ncurses library, it should be something along this patch:
But it doesn't work. We need to understand the CMake's cmake files and do the right thing.