[CMake] purify targets

Juan Sanchez Juan.Sanchez at amd.com
Wed Oct 10 14:29:20 EDT 2007


Hello,

Is it possible to build both purify and non purify targets by changing
CMAKE_CXX_LINK_EXECUTABLE?  Unfortunately the following example purify's
both binaries.

ADD_EXECUTABLE(hello helloworld.cc)
SET (CMAKE_CXX_LINK_EXECUTABLE "purify -cache-dir=/tmp
${CMAKE_CXX_LINK_EXECUTABLE}")
ADD_EXECUTABLE(hello.purify helloworld.cc)

Thanks,

Juan




More information about the CMake mailing list