<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-6" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Alexander Neundorf ha scritto:
<blockquote cite="mid:200804172150.08919.a.neundorf-work@gmx.net"
 type="cite">
  <pre wrap="">On Thursday 17 April 2008, Carlo Loiudice wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">I'm trying to write a simple hello world program using APR.
I'm using Eclipse + Mingw + Cmake on Windows platform, but I need to
develop a cross platform application.
When compiling, the object file was created, but there're linking problem
that I don't know how to resolve.
 
The project directory tree is:
c:\workspace\spok3 (here's the source file spok.cpp and the CMakeLists.txt)
c:\workspace\spok3\build (the cmake build dir)
c:\workspace\spok3\apr
c:\workspace\spok3\apr\include
c:\workspace\spok3\apr\bin (dll files  like libapr-1.dll)
c:\workspace\spok3\apr\library (.lib files like libapr-1.lib...I don't know
the difference with libapr-1.dll) 
In CMakeLists.txt when cmake finds:

FIND_PATH(APR_INCLUDE_DIR NAMES C:/workspace/spok3/apr/include/apr.h )
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Does 
FIND_PATH(APR_INCLUDE_DIR NAMES apr.h PATHS C:/workspace/spok3/apr/include )
work ?

Alex
_______________________________________________
CMake mailing list
<a class="moz-txt-link-abbreviated" href="mailto:CMake@cmake.org">CMake@cmake.org</a>
<a class="moz-txt-link-freetext" href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a></pre>
</blockquote>
It seems that <br>
<pre wrap="">FIND_PATH(APR_INCLUDE_DIR NAMES apr.h PATHS C:/workspace/spok3/apr/include )</pre>
doesn't work because <font><font size="2"> ${APR_INCLUDE_DIR} </font></font>contains
<font size="2">APR_INCLUDE_DIR-NOTFOUND</font><br>
I don't know how to test if the function FIND_PATH works fine...<br>
I'm sure of the presence of apr.h in the path
C:/workspace/spok3/apr/include...<br>
But FIND_PATH says that can't find it...<br>
Help me please...I'm completely stucked :)<br>
Carlo<br>
</body>
</html>