Recent changes in the cmake setup broke static binaries. (#5523)
Recent changes in the cmake setup broke static binaries. (#5523)

This has to do with the order in which things happen in the CMakeLists.txt.
This PR should fix the problem, so that we have static executables again.
wiltonlazary/arangodb,wiltonlazary/arangodb,fceller/arangodb,Simran-B/arangodb,graetzer/arangodb,arangodb/arangodb,fceller/arangodb,fceller/arangodb,arangodb/arangodb,Simran-B/arangodb,fceller/arangodb,fceller/arangodb,fceller/arangodb,Simran-B/arangodb,graetzer/arangodb,graetzer/arangodb,Simran-B/arangodb,Simran-B/arangodb,arangodb/arangodb,arangodb/arangodb,arangodb/arangodb,Simran-B/arangodb,wiltonlazary/arangodb,wiltonlazary/arangodb,Simran-B/arangodb,graetzer/arangodb,graetzer/arangodb,graetzer/arangodb,wiltonlazary/arangodb,fceller/arangodb,fceller/arangodb,fceller/arangodb,Simran-B/arangodb,graetzer/arangodb,graetzer/arangodb,fceller/arangodb,Simran-B/arangodb,wiltonlazary/arangodb,wiltonlazary/arangodb,graetzer/arangodb,graetzer/arangodb,arangodb/arangodb,wiltonlazary/arangodb,graetzer/arangodb,arangodb/arangodb,graetzer/arangodb,graetzer/arangodb,graetzer/arangodb,arangodb/arangodb,Simran-B/arangodb