add conditional check before setting cmake variable
add conditional check before including file