I have a project with the following layout where '/' is the root of the project
workspace:
/
/project
/project/CMakeLists.txt
/project/source here
/include
/include/project
/include/project/headers here
/CMakeLists.txt
To be clear - I am doing an out-of-source build at /build (again).
This is
what is ${project_SOURCE_DIR} ?
try adding MESSAGE(project_SOURCE_DIR is '${project_SOURCE_DIR}')
right before that line in your cmakelists. I have a sneaking suspicion
it's not what you think it is. You have to use something like
${project_SOURCE_DIR}/../include instead.
BRM wrote:
I have a
what is ${project_SOURCE_DIR} ?
try adding MESSAGE(project_SOURCE_DIR is '${project_SOURCE_DIR}')
right before that line in your cmakelists. I have a sneaking suspicion
it's not what you think it is. You have to use something like
${project_SOURCE_DIR}/../include instead.
BRM wrote:
I have a
${project_SOURCE_DIR} is pointing to the root as I thought it would be.
Another suggestion was to use ${PROJECT_SOURCE_DIR} however, that is an empty
string.
I have also tried setting a new variable to ${project_SOURCE_DIR}/include and
using that, however the same result.
I forgot to mention
BRM wrote:
${project_SOURCE_DIR} is pointing to the root as I thought it would be.
Another suggestion was to use ${PROJECT_SOURCE_DIR} however, that is an empty
string.
I have also tried setting a new variable to ${project_SOURCE_DIR}/include and
using that, however the same result.
I