pipacs / o2

OAuth 2.0 for Qt
BSD 2-Clause "Simplified" License
317 stars 147 forks source link

fix CMake path when using O2 as subdirectory in a larger CMake project #140

Closed farindk closed 3 years ago

farindk commented 3 years ago

When using O2 as a sub-project of a larger CMake project, the directory CMAKE_SOURCE_DIR points to the parent project instead to the O2 directory. CMAKE_CURRENT_LIST_DIR points to the directory of the currently processed CMakeLists.txt file.

Not sure whether CMAKE_BINARY_DIR in the following install() line should also be replaced by CMAKE_CURRENT_BINARY_DIR. Probably yes.

pipacs commented 3 years ago

Thanks!