FindIDL icon indicating copy to clipboard operation
FindIDL copied to clipboard

Cannot find idl file if it's in non-related folder

Open xakod opened this issue 3 years ago • 1 comments

I have a bit strange project struct... :) For example, I have:

/root

/mylib

/source

/mylib.idl

/project

CMakeLists.txt with add_idl

So I use add_idl(mylibIDL ${CMAKE_SOURCE_DIR}/mylib/source/mylib.idl). Now, look at ${CMAKE_SOURCE_DIR}/mylib/source/mylib.idl function(add_idl _target _idlfile) and then at https://github.com/apriorit/FindIDL/blob/master/cmake/FindIDL.cmake#L19 COMMAND midl.exe ARGS /${MIDL_ARCH} /env ${MIDL_ARCH} /nologo ${CMAKE_CURRENT_LIST_DIR}/${_idlfile}

If we expand ${_idlfile} here it will become COMMAND midl.exe ARGS /${MIDL_ARCH} /env ${MIDL_ARCH} /nologo ${CMAKE_CURRENT_LIST_DIR}/${CMAKE_SOURCE_DIR}/mylib/source/mylib.idl Now we have a problem :)

xakod avatar Feb 17 '22 18:02 xakod

Thanks for the report! We'll check it.

SergiusTheBest avatar Feb 18 '22 16:02 SergiusTheBest