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
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
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
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