[CMake] absolute include paths to resource compiler

2008-12-04 Thread jesper

Due to some weirdness in Visual Studio, I need to be able to give the
resource compiler an absolute path:

  rc ... -I${CMAKE_SOURCE_DIR}/include

If I put

  include_directories(${CMAKE_SOURCE_DIR}/include)

CMake converts the CMAKE_SOURCE_DIR absolute path to a relative
one. Why? And how do I get around it. I can't find any flags for
setting resource compiler options.

-- 
/Jesper

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


[CMake] absolute include paths to resource compiler

2008-12-04 Thread jesper

Due to some weirdness in Visual Studio, I need to be able to give the
resource compiler an absolute path:

  rc ... -I${CMAKE_SOURCE_DIR}/include

If I put

  include_directories(${CMAKE_SOURCE_DIR}/include)

CMake converts the absolute path to a relative one.


-- 
/Jesper

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] absolute include paths to resource compiler

2008-12-04 Thread Bill Hoffman

[EMAIL PROTECTED] wrote:

Due to some weirdness in Visual Studio, I need to be able to give the
resource compiler an absolute path:

  rc ... -I${CMAKE_SOURCE_DIR}/include

If I put

  include_directories(${CMAKE_SOURCE_DIR}/include)

CMake converts the absolute path to a relative one.



What is the weirdness?   It should work without a full path?

-Bill
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


[CMake] absolute include paths to resource compiler

2008-12-04 Thread Jesper Eskilson

 Due to some weirdness in Visual Studio, I need to be able to give the
 resource compiler an absolute path:
 
   rc ... -I${CMAKE_SOURCE_DIR}/include
 
 If I put
 
   include_directories(${CMAKE_SOURCE_DIR}/include)
 
 CMake converts the absolute path to a relative one.
 
 
What is the weirdness?   It should work without a full path?

Building works, but the resource view in Visual Studio can for some
reason not locate the resource file (in
${CMAKE_SOURCE_DIR}/include). It seems as if Visual Studio does not
always expand relative paths the same way. The result is that we can't
edit our resource files in Visual Studio, since Visual Studio can't
find them.

-- 
/Jesper

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake