This can't work (at least for clean build) because `OpenCV_LIB_DIR` is defined at the end of config file.