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.
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
orBUILD_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.