Monday, May 11, 2015

Setting CFLAGS and CXXFLAGS for OpenCV

Edit cmake/OpenCVCompilerOptions.cmake

set(OPENCV_EXTRA_C_FLAGS "")
set(OPENCV_EXTRA_CXX_FLAGS "")

for example:

set(OPENCV_EXTRA_C_FLAGS "-fPIC")
set(OPENCV_EXTRA_CXX_FLAGS "-fPIC")

No comments:

Post a Comment