summaryrefslogtreecommitdiffstats
path: root/Modules/GetPrerequisites.cmake
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2011-05-26 21:16:58 (GMT)
committerDavid Cole <david.cole@kitware.com>2011-05-27 20:11:43 (GMT)
commit7ac7b437b8bfc344e0d7e451d419596ea809d439 (patch)
treee1e52805a1958a8a4ff5b09a2e341fed05660a8e /Modules/GetPrerequisites.cmake
parentba6579f7a3a687a42572f683441f56cbc70ae928 (diff)
downloadCMake-7ac7b437b8bfc344e0d7e451d419596ea809d439.zip
CMake-7ac7b437b8bfc344e0d7e451d419596ea809d439.tar.gz
CMake-7ac7b437b8bfc344e0d7e451d419596ea809d439.tar.bz2
BundleUtilities: Work w/ non .app exes on Mac (#12034)
Also add a test of BundleUtilities including an exe, some shared libs, a plugin, and a framework-style lib. This test presently runs (and this functionality works) on Linux, Mac and Windows. For now, the framework-style lib is built as a plain old shared lib because there is another yet-unresolved issue with local frameworks without rpaths on the Mac.
Diffstat (limited to 'Modules/GetPrerequisites.cmake')
-rw-r--r--Modules/GetPrerequisites.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/GetPrerequisites.cmake b/Modules/GetPrerequisites.cmake
index 853b1a1..f5c1b74 100644
--- a/Modules/GetPrerequisites.cmake
+++ b/Modules/GetPrerequisites.cmake
@@ -261,9 +261,9 @@ function(gp_resolve_item context item exepath dirs resolved_item_var)
# Is it already resolved?
#
- if(EXISTS "${resolved_item}")
+ if(IS_ABSOLUTE "${resolved_item}" AND EXISTS "${resolved_item}")
set(resolved 1)
- endif(EXISTS "${resolved_item}")
+ endif(IS_ABSOLUTE "${resolved_item}" AND EXISTS "${resolved_item}")
if(NOT resolved)
if(item MATCHES "@executable_path")