aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2eb24fd9a..50884b45c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -364,8 +364,8 @@ endif()
if(ENABLE_RUBY_DOCS)
execute_process(COMMAND
- "${RUBY_EXECUTABLE}" -rubygems -e "require 'syntax/convertors/html'"
- OUTPUT_VARIABLE
+ "${RUBY_EXECUTABLE}" -r rubygems -e "require 'syntax/convertors/html'"
+ RESULT_VARIABLE
ruby_gem_syntax_available
OUTPUT_QUIET
ERROR_QUIET)