[CMake] Howto to work with variables from central makefiles....

2010-11-17 Thread Thomas Lehmann
Hi all, for an automatically forced include I have provided an option like this: set(WIN32_SPEC ${CMAKE_CURRENT_SOURCE_DIR}/../../libs/global/win32_spec.h) add_definitions(-FI ${WIN32_SPEC}) But when including this central file (find_package) the variable CMAKE_CURRENT_SOURCE_DIR changes and

Re: [CMake] Howto to work with variables from central makefiles....

2010-11-17 Thread Eric Noulard
2010/11/17 Thomas Lehmann t.lehm...@rtsgroup.net Hi all, for an automatically forced include I have provided an option like this: set(WIN32_SPEC ${CMAKE_CURRENT_SOURCE_DIR}/../../libs/global/win32_spec.h) May you could use an absolute reference using

Re: [CMake] Howto to work with variables from central makefiles....

2010-11-17 Thread Thomas Lehmann
for an automatically forced include I have provided an option like this: set(WIN32_SPEC ${CMAKE_CURRENT_SOURCE_DIR}/../../libs/global/win32_spec.h) May you could use an absolute reference using ${PROJECT_SOURCE_DIR}/libs/global/win32_spec.h if your project is name TOTO (from

Re: [CMake] Howto to work with variables from central makefiles....

2010-11-17 Thread Michael Hertling
On 11/17/2010 04:56 PM, Thomas Lehmann wrote: for an automatically forced include I have provided an option like this: set(WIN32_SPEC ${CMAKE_CURRENT_SOURCE_DIR}/../../libs/global/win32_spec.h) May you could use an absolute reference using ${PROJECT_SOURCE_DIR}/libs/global/win32_spec.h