find_path messes up in different ways
I was trying to perform a very simple find_path, instead of getting the correct result i found out that this function is very buggy:
first of all doing this:
find_path(MY_PATH_1 "config.hpp" HINTS "D:")
find_path(MY_PATH_2 "config.hpp" HINTS "D:")
message("MY_PATH_1: ${MY_PATH_1}")
message("MY_PATH_2 : ${MY_PATH_2}")
leads to this result:
MY_PATH_1: D:/
MY_PATH_2: MY_PATH_2-NOTFOUND
on both CMake 2.0.11 and 3.6
also even after finding out this bug and workarounding it , find_path is still unable to find my file even tough the path is definitely right and there's no doubt the instruction is typed correctly.