~ubuntu-branches/ubuntu/raring/simgrid/raring

« back to all changes in this revision

Viewing changes to doc/HelloWorld/FindPcreWin.cmake

  • Committer: Package Import Robot
  • Author(s): Martin Quinson
  • Date: 2013-01-31 00:24:51 UTC
  • mfrom: (10.1.6 sid)
  • Revision ID: package-import@ubuntu.com-20130131002451-krejhf7w7h24lpsc
Tags: 3.9~rc1-1
* New upstream release: the "Grasgory" release. Major changes:
  - Gras was completely removed from this version.
  - Documentation reorganization to ease browsing it.
  - New default value for the TCP_gamma parameter: 4MiB

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# LIB libpcre.dll
 
2
find_library(PATH_PCRE_LIB
 
3
  NAMES pcre
 
4
  HINTS
 
5
  $ENV{SIMGRID_PCRE_LIBRARY_PATH}
 
6
  $ENV{PCRE_LIBRARY_PATH}
 
7
  PATH_SUFFIXES bin/ GnuWin32/bin
 
8
  )
 
9
 
 
10
find_path(PATH_PCRE_H "pcre.h"
 
11
  HINTS
 
12
  $ENV{SIMGRID_PCRE_LIBRARY_PATH}
 
13
  $ENV{PCRE_LIBRARY_PATH}
 
14
  PATH_SUFFIXES include/ GnuWin32/include
 
15
  )
 
16
 
 
17
message(STATUS "Looking for pcre.h")
 
18
if(PATH_PCRE_H)
 
19
  message(STATUS "Looking for pcre.h - found")
 
20
else()
 
21
  message(STATUS "Looking for pcre.h - not found")
 
22
endif()
 
23
 
 
24
message(STATUS "Looking for lib pcre")
 
25
if(PATH_PCRE_LIB)
 
26
  message(STATUS "Looking for lib pcre - found")
 
27
else()
 
28
  message(STATUS "Looking for lib pcre - not found")
 
29
endif()
 
30
 
 
31
if(PATH_PCRE_LIB AND PATH_PCRE_H)
 
32
  string(REGEX REPLACE "/pcre.h" "" PATH_PCRE_H "${PATH_PCRE_H}")
 
33
  string(REGEX MATCH "-I${PATH_PCRE_H} " operation "${CMAKE_C_FLAGS}")
 
34
  if(NOT operation)
 
35
    SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}-I${PATH_PCRE_H} ")
 
36
  endif()
 
37
  string(REGEX REPLACE "/libpcre.dll" "" PATH_PCRE_LIB  "${PATH_PCRE_LIB}")
 
38
  link_directories(${PATH_PCRE_LIB})
 
39
else()
 
40
  message(FATAL_ERROR "Please install the pcre package before using SimGrid.")
 
41
endif()
 
42
 
 
43
mark_as_advanced(PATH_PCRE_H)
 
44
mark_as_advanced(PATH_PCRE_LIB)
 
 
b'\\ No newline at end of file'