why does debugging cmake files suck so hard

ok so when including another cmake file from inside a CMakeLists.txt:

include(myfile.cmake) - fail
include(./myfile.cmake) - fail
include(./main/myfile.cmake) - fail
include( ${CMAKE_CURRENT_LIST_DIR}/myfile.cmake) - ok

(main being a subdir of the project root, where this is going on)

it works now but clueless why the other ones fail #cmake