CMake fails on case-insensitive FS, such as Mac OS X

Description

cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=OFF -DUSE_VALGRIND=OFF
results in
...
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!

Environment

Mac OS X

Activity

Show:
Laurynas Biveinis
August 13, 2015, 8:45 AM
Laurynas Biveinis
August 13, 2015, 8:36 AM

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).

Fixed

Assignee

Unassigned

Reporter

Laurynas Biveinis

Labels

None

External issue ID

None

Freshdesk Tickets

None

Fix versions

Priority

Minor