[cmake-developers] FindGTest modification

Brad King brad.king at kitware.com
Mon Mar 14 10:58:01 EDT 2016


On 03/11/2016 12:00 PM, Zak Eckert wrote:
> + configure_file(${source} ${source}.out COPYONLY)

Thanks.  Please try using CMAKE_CONFIGURE_DEPENDS instead:

  https://cmake.org/cmake/help/v3.5/prop_dir/CMAKE_CONFIGURE_DEPENDS.html

It should be something like:

  set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS ${source})

Thanks,
-Brad



More information about the cmake-developers mailing list