From 3c8b1cb005e3d0a4a025f590099eb61c78b39a98 Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Fri, 19 Mar 2010 14:22:27 +0000 Subject: [PATCH] * All Tools: - Change: _SEARCH_PATH are put back into the *first* tool of a project. - Bug: In HURRICANE_CHECK_MACRO(), the quiet flag was not correctly implemented. User ARGV instead of argv (case sensitivity!). --- vlsisapd/cmake_modules/FindIO.cmake | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/vlsisapd/cmake_modules/FindIO.cmake b/vlsisapd/cmake_modules/FindIO.cmake index 47332682..a205c3e0 100644 --- a/vlsisapd/cmake_modules/FindIO.cmake +++ b/vlsisapd/cmake_modules/FindIO.cmake @@ -7,6 +7,27 @@ SET(IO_FOUND FALSE) +# Setup the DIR_SEARCH_PATH. +MACRO(SETUP_SEARCH_DIR project) + IF( NOT("$ENV{${project}_USER_TOP}" STREQUAL "") ) + MESSAGE("-- ${project}_USER_TOP is set to $ENV{${project}_USER_TOP}") + LIST(FIND ${project}_DIR_SEARCH "${${project}_DIR_SEARCH}" DIR_INDEX) + IF( DIR_INDEX LESS 0) + LIST(INSERT ${project}_DIR_SEARCH 0 "$ENV{${project}_USER_TOP}") + ENDIF( DIR_INDEX LESS 0) + ENDIF( NOT("$ENV{${project}_USER_TOP}" STREQUAL "") ) + + IF( NOT("$ENV{${project}_TOP}" STREQUAL "") ) + MESSAGE("-- ${project}_TOP is set to $ENV{${project}_TOP}") + LIST(FIND ${project}_DIR_SEARCH "${${project}_DIR_SEARCH}" DIR_INDEX) + IF( DIR_INDEX LESS 0) + LIST(INSERT ${project}_DIR_SEARCH 0 "$ENV{${project}_TOP}") + ENDIF( DIR_INDEX LESS 0) + ENDIF( NOT("$ENV{${project}_TOP}" STREQUAL "") ) +ENDMACRO(SETUP_SEARCH_DIR project) + +SETUP_SEARCH_DIR(IO) + IF(IO_DIR_SEARCH) # AGDS FIND_PATH(AGDS_INCLUDE_DIR