diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2012-03-28 22:51:06 (GMT) |
---|---|---|
committer | Rolf Eike Beer <eike@sf-mail.de> | 2012-08-14 19:03:23 (GMT) |
commit | cfe4ac4b417b80fb657c8de3b43a29e12a558d82 (patch) | |
tree | 6ca43a847abcf2e4687f5d00e10673b9e429d5e4 /Modules/FindDart.cmake | |
parent | b04650e163320353762b6ec196afa9500345b5cd (diff) | |
download | CMake-cfe4ac4b417b80fb657c8de3b43a29e12a558d82.zip CMake-cfe4ac4b417b80fb657c8de3b43a29e12a558d82.tar.gz CMake-cfe4ac4b417b80fb657c8de3b43a29e12a558d82.tar.bz2 |
use PATH_SUFFIXES to simplify find_* calls
Especially remove "lib64" when the given paths are all Unix ones and "lib" is
also explicitely given. In that case CMake will search "lib64" anyway for
platforms where it is known to make sense.
Diffstat (limited to 'Modules/FindDart.cmake')
-rw-r--r-- | Modules/FindDart.cmake | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/Modules/FindDart.cmake b/Modules/FindDart.cmake index b6ea9e0..a2b2926 100644 --- a/Modules/FindDart.cmake +++ b/Modules/FindDart.cmake @@ -20,13 +20,15 @@ find_path(DART_ROOT README.INSTALL HINTS ENV DART_ROOT PATHS - ${PROJECT_SOURCE_DIR}/Dart - /usr/share/Dart - C:/Dart - "$ENV{ProgramFiles}/Dart" - "C:/Program Files/Dart" - ${PROJECT_SOURCE_DIR}/../Dart - [HKEY_LOCAL_MACHINE\\SOFTWARE\\Dart\\InstallPath] + ${PROJECT_SOURCE_DIR} + /usr/share + C:/ + "C:/Program Files" + ${PROJECT_SOURCE_DIR}/.. + [HKEY_LOCAL_MACHINE\\SOFTWARE\\Dart\\InstallPath] + ENV ProgramFiles + PATH_SUFFIXES + Dart DOC "If you have Dart installed, where is it located?" ) |