Skip to content

Conversation

@atraczyk
Copy link

Fixes find_package() failures on Fedora (lib64) and Debian multiarch systems by passing CMAKE_INSTALL_LIBDIR to the subprocess, ensuring the package installs to the same location where the parent expects to find it.

Fixes find_package() failures on Fedora (lib64) and Debian multiarch
systems by passing CMAKE_INSTALL_LIBDIR to the subprocess, ensuring the
package installs to the same location where the parent expects to find
it.
@SineStriker
Copy link
Collaborator

Would you mind adding some comments in this cmake file?

Copy link
Collaborator

@wangwenx190 wangwenx190 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I also think it's worthy to leave some comments in the cmake file, it's hard to understand why do we need this line without any context.

set(${FUNC_RESULT_PATH} ${_install_cmake_dir} PARENT_SCOPE)
endif()
endfunction() No newline at end of file
endfunction()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The encoding or line ending seems to be changed, better to restore this change

execute_process(
COMMAND ${CMAKE_COMMAND} -S ${_src_dir} -B ${_build_dir}
${_extra_args} ${_build_type}
"-DCMAKE_INSTALL_LIBDIR=${CMAKE_INSTALL_LIBDIR}"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this some sort of cmake's own bug?

@wangwenx190 wangwenx190 self-assigned this Jan 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants