layers: xgl-helper.py depends on xgl.h
authorChia-I Wu <olv@lunarg.com>
Sat, 10 Jan 2015 03:43:05 +0000 (11:43 +0800)
committerCourtney Goeltzenleuchter <courtney@LunarG.com>
Thu, 5 Feb 2015 00:58:04 +0000 (17:58 -0700)
This makes sure helpers are regenerated when xgl.h is edited.

layers/CMakeLists.txt

index 3203238c42e3599f624c7e49eb30b6aa26044b6c..7a4a752edc6f99e835489daf1dacfb32e02699fa 100644 (file)
@@ -3,7 +3,7 @@ cmake_minimum_required (VERSION 2.8.11)
 macro(run_xgl_helper subcmd)
        add_custom_command(OUTPUT ${ARGN}
                COMMAND ${PROJECT_SOURCE_DIR}/xgl-helper.py --${subcmd} ${PROJECT_SOURCE_DIR}/include/xgl.h --abs_out_dir ${CMAKE_CURRENT_BINARY_DIR}
-               DEPENDS ${PROJECT_SOURCE_DIR}/xgl-helper.py
+               DEPENDS ${PROJECT_SOURCE_DIR}/xgl-helper.py ${PROJECT_SOURCE_DIR}/include/xgl.h
        )
 endmacro()