[CMake] cmake_clean_${lang}.cmake

arrowdodger 6yearold at gmail.com
Sat Sep 24 07:38:07 EDT 2011


Hello. I'm adding Haskell support to the CMake and stumbled with this
problem:
CMAKE_Haskell_COMPILE_OBJECT rule produces two files (.o itself and .hi
interface file used by haskell compiler). when i run `make clean`, all .o's
are deleted, but .hi's aren't. I've found these lines in cmake_clean.cmake:

# Per-language clean rules from dependency scanning.
FOREACH(lang Haskell)
  INCLUDE(CMakeFiles/dir_test.dir/cmake_clean_${lang}.cmake OPTIONAL)
ENDFOREACH(lang)

Can you provide me information on how to create this
cmake_clean_${lang}.cmake file?

Please CC me, since i'm not subscribed to the list.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110924/aa57b986/attachment.htm>


More information about the CMake mailing list