I have something such as this in my cmake:
set(MyLib_SRC $ENV{MyLib_DIR}/MyLib.cpp) add_library(MyLibrary STATIC ${MyLib_SRC})
but when I r
I suppose cmake always expects UNIX-style path. So, what I do is
set(MayLib_PATH $ENV{MyLib_DIR}) string(REPLACE "\\" "/" MayLib_PATH "${MayLib_PATH}")