Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Jihadist opened this issue Feb 17, 2022 · 1 comment
Open

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

Jihadist opened this issue Feb 17, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@Jihadist
Copy link

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 :)

@SergiusTheBest
Copy link
Member

Thanks for the report! We'll check it.

@SergiusTheBest SergiusTheBest added the enhancement New feature or request label Feb 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants