浏览代码

cmake fix to avoid installing .git stuff when 'make install'

Johannes Ruehle 11 年之前
父节点
当前提交
30b0283e7a
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      cmake/NiceModules.cmake

+ 2 - 1
cmake/NiceModules.cmake

@@ -131,7 +131,8 @@ macro(nice_build_library)
   install(DIRECTORY ./ DESTINATION "include/${the_library}"
           FILES_MATCHING 
           PATTERN "*.h"
-          PATTERN "*.tcc")
+          PATTERN "*.tcc"
+	  PATTERN ".git" EXCLUDE)
 
   configure_file( ../cmake/niceConfig.cmake.in "${PROJECT_BINARY_DIR}/lib/nice_${the_library}Config.cmake" )
 endmacro()