~ubuntu-branches/ubuntu/utopic/adios/utopic

« back to all changes in this revision

Viewing changes to wrappers/numpy/Modules/CMakeUtilityFunctions.cmake

  • Committer: Package Import Robot
  • Author(s): Alastair McKinstry
  • Date: 2013-12-09 15:21:31 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20131209152131-jtd4fpmdv3xnunnm
Tags: 1.5.0-1
* New upstream.
* Standards-Version: 3.9.5
* Include latest config.{sub,guess} 
* New watch file.
* Create libadios-bin for binaries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
function (print VAR)
 
2
  set(NAME ${VAR})
 
3
  list (APPEND VARS ${${VAR}})
 
4
 
 
5
  set(MSG)
 
6
  set(IS_FIRST TRUE)
 
7
 
 
8
  foreach(ELM ${VARS})
 
9
    if (IS_FIRST)
 
10
      set(MSG ${ELM})
 
11
      set(IS_FIRST FALSE)
 
12
    else ()
 
13
      set(MSG ${MSG}, ${ELM})
 
14
    endif ()
 
15
  endforeach()
 
16
 
 
17
  message("${NAME} = "${MSG})
 
18
endfunction(print VAR)
 
19