[ https://issues.apache.org/jira/browse/MINIFICPP-555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16549349#comment-16549349 ]
Andrew Christianson commented on MINIFICPP-555: ----------------------------------------------- CMAKE_TOOLCHAIN_FILE does not encompass all vars that would need to be passed through (including CMAKE_TOOLCHAIN_FILE itself). > Pass through CMake args from build environment to external projects > ------------------------------------------------------------------- > > Key: MINIFICPP-555 > URL: https://issues.apache.org/jira/browse/MINIFICPP-555 > Project: NiFi MiNiFi C++ > Issue Type: Improvement > Reporter: Andrew Christianson > Assignee: Andrew Christianson > Priority: Major > > When the build environment is customized, and especially in cross-compilation > build environments, many CMake env vars are set which need to be, but are not > by default, passed to external project builds. Vars include: > > {code:java} > set(PASSTHROUGH_CMAKE_ARGS -DANDROID_ABI=${ANDROID_ABI} > -DANDROID_PLATFORM=${ANDROID_PLATFORM} > -DANDROID_STL=${ANDROID_STL} > -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=${CMAKE_LIBRARY_OUTPUT_DIRECTORY} > -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} > -DANDROID_NDK=${ANDROID_NDK} > -DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS} > -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} > -DCMAKE_MAKE_PROGRAM=${CMAKE_MAKE_PROGRAM} > -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} > -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} > -DCMAKE_FIND_ROOT_PATH=${CMAKE_FIND_ROOT_PATH} > -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=${CMAKE_FIND_ROOT_PATH_MODE_PROGRAM} > -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=${CMAKE_FIND_ROOT_PATH_MODE_LIBRARY} > -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=${CMAKE_FIND_ROOT_PATH_MODE_INCLUDE} > -DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX} > -G${CMAKE_GENERATOR}) > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)