In this case you are using lowercase for CMake commands:

    add_custom_target(BUILD_MONGOCLIENT_RELEASE ...