From 8db2fd8ef63b2335c2931731936d1a0098ce97cb Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Thu, 8 Mar 2012 10:29:27 +0000 Subject: [PATCH] * ./bootstrap: - Bug: In ./cmake_modules/FindBootstrap.cmake, fix small message display typos. No 'IN LISTS' in forach call. Force variable lookup in SEARCH_SETUP_DIR in foreach summarizing the search path. --- bootstrap/cmake_modules/FindBootstrap.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bootstrap/cmake_modules/FindBootstrap.cmake b/bootstrap/cmake_modules/FindBootstrap.cmake index 1cf1c9f4..b2e447f4 100644 --- a/bootstrap/cmake_modules/FindBootstrap.cmake +++ b/bootstrap/cmake_modules/FindBootstrap.cmake @@ -103,7 +103,7 @@ # macro(print_cmake_module_path) message("-- Components of CMAKE_MODULE_PATH:") - foreach(PATH IN LISTS ${CMAKE_MODULE_PATH}) + foreach(PATH ${CMAKE_MODULE_PATH}) message("-- ${PATH}") endforeach(PATH) endmacro(print_cmake_module_path) @@ -190,7 +190,7 @@ endif(NOT Boost_FOUND) endif(ARGC LESS 1) message(STATUS "Found Boost libraries ${Boost_LIB_VERSION} in ${Boost_INCLUDE_DIR}") - foreach(LIBRARY IN LISTS ${Boost_LIBRARIES}) + foreach(LIBRARY ${Boost_LIBRARIES}) message(STATUS " ${LIBRARY}") endforeach(LIBRARY) add_definitions(-DBOOST_FILESYSTEM_VERSION=2) # for boost 1.46 and more we need to specify to use filesystem v2 and not v3 @@ -234,7 +234,7 @@ LIST(REMOVE_DUPLICATES ${project}_DIR_SEARCH) MESSAGE("-- Components of ${project}_DIR_SEARCH:") - FOREACH(PATH IN LISTS ${project}_DIR_SEARCH) + FOREACH(PATH ${${project}_DIR_SEARCH}) MESSAGE("-- ${PATH}") ENDFOREACH(PATH) ENDMACRO(SETUP_SEARCH_DIR project)