CMake Error at incompatible-library-features2.cmake:[0-9]+ \(add_library\): Impossible to link target 'lib1' because the link item 'dep1', specified with the feature 'feat1', has already occurred with the feature 'feat2', which is not allowed. Call Stack \(most recent call first\): CMakeLists.txt:[0-9]+ \(include\)