[Cmake] include directories differ between VS6.0 and NMake ??

William A. Hoffman billlist at nycap.rr.com
Tue Jul 27 14:27:46 EDT 2004


This was a bug that was fixed in 2.0.2, however, it is still around
in some cases for backwards compatibility reasons:

Changes in CMake 2.0.2:

- Remove automatic -I for source directory with makefile generator.
  Problems caused by this can be fixed with this command:
  INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}).
  Or, you can set the CMAKE_BACKWARDS_COMPATIBILITY to 1.8.

So, what is CMAKE_BACKWARDS_COMPATIBILITY set to for your project?

-Bill

At 02:16 PM 7/27/2004, Terry Lorber wrote:
>CMake 2.0 - patch 2
>
>I've noticed that the INCLUDE_FLAGS value in my NMake Makefiles have the  project's source directory listed with the other -I values.  When I look at the Project Settings within Studio, that directory is not listed in the "Additional include directories:", nor is it part of the /I exported in the projects .plg file.
>
>Is this correct?
>
>What can I do if I want to get my NMake Makefile to look more like the project settings, something like:
>
>REMOVE(${INCLUDE_FLAGS} ${project_SOURCE_DIR})
>
>Thanks.
>
>tgl
>-- 
>Atlantis Components Inc     25 First St
>617.661.9799x248            Cambridge MA  02141
>
>_______________________________________________
>Cmake mailing list
>Cmake at www.cmake.org
>http://www.cmake.org/mailman/listinfo/cmake



More information about the Cmake mailing list