Conditionalize changes to CMakeLists.txt