wesnoth/cmake/po4a-manual.cmake
2018-03-12 03:48:59 +11:00

8 lines
225 B
CMake

# Small helper to execute code see doc/manual/CMakeLists.txt
# for more information
if(EXISTS ${SOURCE})
string(REPLACE "\\ " " " CMD ${CMD})
separate_arguments(CMD)
execute_process(COMMAND ${CMD})
endif(EXISTS ${SOURCE})