Check the cmake options against 'ON', not 1