qaccordion
qaccordion copied to clipboard
Corrected Use of CMake Variable
The project uses CMAKE_SOURCE_DIR to refer to the top level directory of the project, when it should be using PROJECT_SOURCE_DIR.
CMAKE_SOURCE_DIRrefers to the directory from which CMake was started.PROJECT_SOURCE_DIRrefers to the directory from whichproject(qaccordion)was called.
It's not always the case that CMAKE_SOURCE_DIR is the same as PROJECT_SOURCE_DIR. If qaccordion is included into another project, the variables are different.
For instance, if qaccordion is in another project like other-project/external/qaccordion, then:
CMAKE_SOURCE_DIRis/home/tay10r/other-project/PROJECT_SOURCE_DIRis/home/tay10r/other-project/external/qaccordion