From d44615e383e2841fa93e22cb294b1faafd3e5334 Mon Sep 17 00:00:00 2001 From: Mads Andreasen Date: Fri, 25 Jun 2021 18:27:28 +0200 Subject: [PATCH] Install headers correctly when used as a cmake submodule (FetchContent) --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 12773f3..26b28da 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -16,4 +16,4 @@ install(TARGETS CppLinuxSerial DESTINATION lib) # On Linux, "sudo make install" will typically copy the # folder into /usr/local/include -install(DIRECTORY ${CMAKE_SOURCE_DIR}/include/CppLinuxSerial DESTINATION include) \ No newline at end of file +install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../include/CppLinuxSerial DESTINATION include) -- libgit2 0.21.4