this way permit to use cmake language to manipulate the target and avoid restriction imposed by CMAKE_COMMAND command mode