fix configuration without CMAKE_CURRENT_LIST_DIR