BUILD_SHARED_LIBS should be passed on the command line, not hardcoded in a CMakeLists.txt