]> The Tcpdump Group git mirrors - libpcap/commit
replace CMAKE_CURRENT_SOURCE_DIR by CMAKE_SOURCE_DIR 756/head
authorstubbfel <[email protected]>
Thu, 6 Sep 2018 17:06:20 +0000 (19:06 +0200)
committerGitHub <[email protected]>
Thu, 6 Sep 2018 17:06:20 +0000 (19:06 +0200)
commitc4fe61ebbca35af424ff0bdf281d9729378c44c3
tree437082b380205e644712a3ab23cfc2c583516219
parentf33291aa9b1510944af6c1861d67c4138f8fe883
replace CMAKE_CURRENT_SOURCE_DIR by CMAKE_SOURCE_DIR

This is an approach to use CMAKE_CURRENT_SOURCE_DIR intead of CMAKE_SOURCE_DIR.

https://cmake.org/cmake/help/latest/variable/CMAKE_CURRENT_SOURCE_DIR.html
http://johnnado.com/cmake-directory-variables/
http://fujii.github.io/2015/10/10/cmake-best-practice

So its possible add libpcap as subdirectory ( https://cmake.org/cmake/help/v3.0/command/add_subdirectory.html ) in other "cmake-projects".
CMakeLists.txt