[CMake] Checking Cpack generator type in script code of (INSTALL SCRIPT

vivek goel goelvivek2011 at gmail.com
Tue Dec 13 19:27:02 EST 2011


hi,
I am using
(INSTALL SCRIPT foo)

inside foo how can I check that generator type is RPM or not ?

I tried with this code

if(CPACK_GENERATOR MATCHES "RPM")
EXECUTE_PROCESS(COMMAND echo   ${CMAKE_INSTALL_PREFIX})
endif(CPACK_GENERATOR MATCHES "RPM")

But this code doesn't work.



regards
Vivek Goel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20111214/e1364550/attachment-0001.htm>


More information about the CMake mailing list