I also found that this setting should be moved out of the containing if statement, it should be defined even if libdynd is a subproject.