From 04136a558aae63b97284ddb4db626d79a3898d86 Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Wed, 19 Dec 2007 03:55:11 -0500 Subject: BUG: make CMAKE_USE_CHRPATH a simple variable instead an option, since an option is not scriptable and so breaks the toolchain test or maybe option() should be made scriptable ? Alex --- Modules/CMakeFindBinUtils.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/CMakeFindBinUtils.cmake b/Modules/CMakeFindBinUtils.cmake index 43f76f7..af48ffd 100644 --- a/Modules/CMakeFindBinUtils.cmake +++ b/Modules/CMakeFindBinUtils.cmake @@ -77,7 +77,7 @@ ENDIF(APPLE) IF(UNIX AND NOT APPLE AND NOT WIN32) # on ELF platforms there might be chrpath, which works similar to install_name_tool - OPTION(CMAKE_USE_CHRPATH "Enable this to use chrpath if available" OFF) + SET(CMAKE_USE_CHRPATH OFF CACHE BOOL "Enable this to use chrpath if available") FIND_PROGRAM(CMAKE_CHRPATH chrpath PATHS ${_CMAKE_TOOLCHAIN_LOCATION} NO_DEFAULT_PATH) FIND_PROGRAM(CMAKE_CHRPATH chrpath) -- cgit v0.12