dtrugman / pfs

Parsing the Linux procfs
Apache License 2.0
99 stars 33 forks source link

Adjust to compilation as CMake sub-directory #28

Closed dtrugman closed 2 years ago

dtrugman commented 2 years ago

Avoid possible option collisions when using pfs as sub-directory. Some options are supposed to be shared with the project and are common CMake flags, like the CMAKE_BUILD_TYPE or BUILD_SHARED_LIBS. Whereas other flags are not supposed to be shared, and hence should are to be prefixed with the project name.

While at it, print all CMake options while building to ease debugging and standardize the formatting of the CMakeLists.txt file.