aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/keg.rb2
-rw-r--r--Library/Homebrew/test/test_keg.rb7
2 files changed, 9 insertions, 0 deletions
diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb
index a4d43bc83..2271fd697 100644
--- a/Library/Homebrew/keg.rb
+++ b/Library/Homebrew/keg.rb
@@ -278,6 +278,8 @@ class Keg
when 'charset.alias' then :skip_file
# pkg-config database gets explicitly created
when 'pkgconfig' then :mkpath
+ # cmake database gets explicitly created
+ when 'cmake' then :mkpath
# lib/language folders also get explicitly created
when 'dtrace' then :mkpath
when /^gdk-pixbuf/ then :mkpath
diff --git a/Library/Homebrew/test/test_keg.rb b/Library/Homebrew/test/test_keg.rb
index 0fb419f0d..28cadf1c4 100644
--- a/Library/Homebrew/test/test_keg.rb
+++ b/Library/Homebrew/test/test_keg.rb
@@ -207,6 +207,13 @@ class LinkTests < Homebrew::TestCase
assert_predicate link.lstat, :directory?
end
+ def test_cmake_is_mkpathed
+ link = HOMEBREW_PREFIX.join("lib", "cmake")
+ @keg.join("lib", "cmake").mkpath
+ @keg.link
+ assert_predicate link.lstat, :directory?
+ end
+
def test_symlinks_are_linked_directly
link = HOMEBREW_PREFIX.join("lib", "pkgconfig")