The compiled library is placed in a directory related to project sources dir:
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/../../lib)
This causes issues when you have more than single build directory in the project. I personally have maybe 10 different build directories for different compilers/platforms ;) (linux compilation, mingw-32bit, mingw-64bit, 32-bit linux static package, 64-bit static package etc...). All these build directories use by default single library which is placed in "${PROJECT_SOURCE_DIR}/../../lib". This causes erros when linking final executable. For example the 32-bit executable tries to link previously compiled 64-bit library.
Here is original bug report:
https://github.com/supertuxkart/stk-code/issues/2325
We fixed this by just removing this line. It would be nice to make this fix upstream, so that we won't need to apply this modification after every update.