CMakeLists.txt compiler detection fix