summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-03-16 17:48:10 (GMT)
committerBrad King <brad.king@kitware.com>2020-03-16 18:07:30 (GMT)
commitecdace4d61f597264ae4f764535d84e1c9624ae2 (patch)
treea8aa76b53669ad7e64fe7d7096207f2922675c80
parentf52f496138380a65790e25ef5c75a114fa4cfd79 (diff)
downloadCMake-ecdace4d61f597264ae4f764535d84e1c9624ae2.zip
CMake-ecdace4d61f597264ae4f764535d84e1c9624ae2.tar.gz
CMake-ecdace4d61f597264ae4f764535d84e1c9624ae2.tar.bz2
FindRuby: Include FPHSA closer to where it is used
-rw-r--r--Modules/FindRuby.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindRuby.cmake b/Modules/FindRuby.cmake
index acd67ba..b4e9c76 100644
--- a/Modules/FindRuby.cmake
+++ b/Modules/FindRuby.cmake
@@ -273,7 +273,6 @@ endif()
find_library(Ruby_LIBRARY NAMES ${_Ruby_POSSIBLE_LIB_NAMES} HINTS ${Ruby_POSSIBLE_LIB_DIR} )
-include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
set(_Ruby_REQUIRED_VARS Ruby_EXECUTABLE Ruby_INCLUDE_DIR Ruby_LIBRARY)
if(_Ruby_VERSION_SHORT_NODOT GREATER 18)
list(APPEND _Ruby_REQUIRED_VARS Ruby_CONFIG_INCLUDE_DIR)
@@ -295,6 +294,7 @@ if(_Ruby_DEBUG_OUTPUT)
message(STATUS "--------------------")
endif()
+include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Ruby REQUIRED_VARS ${_Ruby_REQUIRED_VARS}
VERSION_VAR Ruby_VERSION )