Well from the moment you do :  +set(${PROJECT_NAME}_VERSION ${medInria_VERSION}) , you already make it impossible to change the version for a separate plugin.