Skip to content

Commit 9c339cf

Browse files
Convert the truthy/falsey but also stringy value from enabled? to ON/OFF
The truthy/falsey rules differ between ruby and cmake, in particular the actual path from enabled? is falsey in cmakes book.
1 parent e32dbfb commit 9c339cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: overrides.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
if File.directory?(File.join(pkg.srcdir, 'viz'))
9696
pkg.env_add_path 'VIZKIT_PLUGIN_RUBY_PATH', File.join(pkg.prefix, 'lib')
9797
end
98-
pkg.define 'ROCK_TEST_ENABLED', pkg.test_utility.enabled?
98+
pkg.define 'ROCK_TEST_ENABLED', pkg.test_utility.enabled? ? "ON" : "OFF"
9999
if pkg.test_utility.enabled?
100100
pkg.depends_on 'minitest-junit'
101101
pkg.define 'ROCK_TEST_LOG_DIR', pkg.test_utility.source_dir

0 commit comments

Comments
 (0)