Commit d44615e383e2841fa93e22cb294b1faafd3e5334

Authored by Mads Andreasen
1 parent e1d083a1

Install headers correctly when used as a cmake submodule (FetchContent)

Showing 1 changed file with 1 additions and 1 deletions
src/CMakeLists.txt
... ... @@ -16,4 +16,4 @@ install(TARGETS CppLinuxSerial DESTINATION lib)
16 16  
17 17 # On Linux, "sudo make install" will typically copy the
18 18 # folder into /usr/local/include
19   -install(DIRECTORY ${CMAKE_SOURCE_DIR}/include/CppLinuxSerial DESTINATION include)
20 19 \ No newline at end of file
  20 +install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../include/CppLinuxSerial DESTINATION include)
... ...