Hi, all,

Does EXECUTE_PROCESS support relative path to CMakeLists.txt file?

Suppose we have this demo:

EXECUTE_PROCESS(
  COMMAND /bin/cat ./xxx
  # WORKING_DIRECTORY /some/absolute/path
)

If we do not set WORKING_DIRECTORY to absolute path, this command does not work.
But I do not want to introduce a fixed absolute path(or ENV) that is
up to who builds the project.

So does cmake have a feature of relative path? Such as:
EXECUTE_PROCESS(
  COMMAND /bin/cat RELATIVE{./xxx}
)

here RELATIVE means relative to CMakeLists.txt file.

Best Regards,

Steve Chu
http://stvchu.org
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to