Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

Simplify cross compilation with ComputeCpp_HOST_DIR #144

Merged
merged 4 commits into from
Sep 20, 2018

Conversation

ProGTX
Copy link
Contributor

@ProGTX ProGTX commented Sep 20, 2018

Adds a CMake option ComputeCpp_NATIVE_DIR that is used to specify the directory of the ComputeCpp package built for the native architecture. For example, when cross compiling for ARM on an x86 machine, ComputeCpp_DIR would point to the ARM package of ComputeCpp and ComputeCpp_NATIVE_DIR would point to the x86 one. This is required because the CMake script executes binaries from the ComputeCpp package.

@mmha
Copy link
Contributor

mmha commented Sep 20, 2018

Bikeshed: I think ComputeCpp_HOST_DIR is clearer.

cmake/Modules/FindComputeCpp.cmake Outdated Show resolved Hide resolved
@ProGTX ProGTX changed the title Simplify cross compilation with ComputeCpp_NATIVE_DIR Simplify cross compilation with ComputeCpp_HOST_DIR Sep 20, 2018
@DuncanMcBain DuncanMcBain merged commit a387108 into codeplaysoftware:master Sep 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants