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

CMAKE_FIND_ROOT_PATH causes series of mystical bugs #6

Open
GoogleCodeExporter opened this issue Apr 21, 2016 · 2 comments
Open

CMAKE_FIND_ROOT_PATH causes series of mystical bugs #6

GoogleCodeExporter opened this issue Apr 21, 2016 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Write CMakeLists that uses, for example, find_path for some puprose
2. Try to compile the project with android toolchain
3. Discover that your files are searched somewhere inside NDK

What is the expected output? What do you see instead?
Files were found correctly.

I've tried to use the toolchain to compile qt project. find_package (Qt4) just 
works fine usually when I give it path to qmake utility.
Pre-built Qt for android wasn't installed inside NDK directory for some reasons 
by Necessitas installer and I've tried to set QT_QMAKE_EXECUTABLE and 
cross-compile the project in usual way, but CMAKE_FIND_ROOT_PATH makes FindQt4 
module act in mystical way without any warnings.

The solution is to add "/" to the variable.


Original issue reported on code.google.com by [email protected] on 26 Mar 2012 at 1:46

@GoogleCodeExporter
Copy link
Author

I Changed the latest version to this:
# where is the target environment
set( CMAKE_FIND_ROOT_PATH_CUSTOM_APPEND CACHE STRING "Add custom path to the 
end of CMAKE_FIND_ROOT_PATH" )

# where is the target environment
set( CMAKE_FIND_ROOT_PATH "${ANDROID_TOOLCHAIN_ROOT}/bin" 
"${ANDROID_TOOLCHAIN_ROOT}/${ANDROID_TOOLCHAIN_MACHINE_NAME}" 
"${ANDROID_SYSROOT}" "${CMAKE_INSTALL_PREFIX}" "${CMAKE_INSTALL_PREFIX}/share" 
"${CMAKE_FIND_ROOT_PATH_CUSTOM_APPEND}" )

Patch attached

Original comment by [email protected] on 20 Sep 2012 at 1:03

Attachments:

@GoogleCodeExporter
Copy link
Author

Still seeing this.

Original comment by [email protected] on 10 Aug 2014 at 4:04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant