CMake fails on case-insensitive FS, such as Mac OS X
cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=OFF -DUSE_VALGRIND=OFF
CMake Error: Attempt to add a custom rule to output "/Users/laurynas/percona/ft-index/TAGS.rule" which already has a custom rule.
– Configuring incomplete, errors occurred!
Mac OS X
The error goes away if I add -DUSE_CTAGS=OFF. But CMake scripts already contain similar logic, commit b34991a.
I'm no CMake expert, but it looks like that logics uses undefined USE_ETAGS value, whose option comes after USE_CTAGS in the CMake file. If I swap the two options, the error goes aways and -DUSE_*TAGS=ON|OFF combinations work as expected (except for both ON).