mirror of
https://github.com/eclipse/mosquitto.git
synced 2025-05-08 16:52:13 +08:00

When mosquitto is included as subdirectory, `CMAKE_SOURCE_DIR` does not refer to the mosquitto top level CMake file, but to the whole project top level CMake. Use `PROJECT_SOURCE_DIR` instead to refer to the right CMake in both contextes. Signed-off-by: Pierre Hallot <hallotpierre@gmail.com>