Use the CMAKE_INDEPENDENT_CODE property instead of using -fPIC compilation option as this option is not valid for all compilers.
Use the CMAKE_INDEPENDENT_CODE property instead of using -fPIC compilation option as this option is not valid for all compilers.