1 | initial version |
The solution to this question is quite simple as suggested in the comments, be resolved by reading the CMake manual follows the summary of what I learned on the subject:
Just replace "EXTRA_" to "CMAKE_" in the name of the variable that parameterize the cmake command:
CMAKE_CXX_FLAGS_RELEASE
CMAKE_C_FLAGS_RELEASE
He does not use these post-fixed variables "_Release" or even "_DEBUG" the joint compilation, unless the variable CMAKE_BUILD_TYPE
is used to determine the type of compilation to be done, selecting the appropriate setting for each use.
So the solution to pass extra parameters to compile OpenCV is using the variables:
CMAKE_CXX_FLAGS
CMAKE_C_FLAGS
In addition it may be required for additional parameters to the linking process to use that variable:
CMAKE_EXE_LINKER_FLAGS
More information can be found at:
2 | No.2 Revision |
The solution to this question is quite simple as suggested in the comments, be resolved by reading the CMake manual follows the summary of what I learned on the subject:
Just replace "EXTRA_" to "CMAKE_" in the name choice of the variable that parameterize package name is made by use of the cmake command:variable
CMAKE_CXX_FLAGS_RELEASE
CMAKE_C_FLAGS_RELEASE
CPACK_PACKAGE_FILE_NAME
He does not You can use these post-fixed other variables "_Release" or even "_DEBUG" the joint compilation, unless the variable to CMAKE_BUILD_TYPE
is used determine the type of compilation to be done, selecting the appropriate setting for each use.
So the solution to pass extra parameters to compile OpenCV is using the variables:help you compose your package, such as:
CMAKE_CXX_FLAGS
CPACK_PACKAGE_FILE_NAME = $ {CPACK_PACKAGE_NAME} - $ {} CPACK_PACKAGE_VERSION -NanoPI-M3-Cortex-A53-ARMv8-A - $ {} CMAKE_BUILD_TYPE
CMAKE_C_FLAGS
In addition it may be required for additional parameters to the linking process to use that variable:
CMAKE_EXE_LINKER_FLAGS
More information can be found at: