Closed suntzu86 closed 10 years ago
EXISTS checks whether the argument is a valid directory or file. DEFINED checks whether a variable is defined.
we probably want something more like
if (DEFINED variable) if (EXISTS ${variable}) do_stuff else() error_message endif() endif()
there is also IS_DIRECTORY to check just the directory feature. currently if you pass us an invalid value, we will just ignore it.
fixed in: https://github.com/Yelp/MOE/pull/363
EXISTS checks whether the argument is a valid directory or file. DEFINED checks whether a variable is defined.
we probably want something more like
there is also IS_DIRECTORY to check just the directory feature. currently if you pass us an invalid value, we will just ignore it.