set(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} ${OPENCV_EXTRA_EXE_LINKER_FLAGS_DEBUG}")
# If GCC, if the user does not setup CMAKE_BUILD_TYPE, assume it's Release:
-if (CMAKE_COMPILER_IS_GNUCXX AND NOT "${CMAKE_BUILD_TYPE}")
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS_RELEASE}")
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS_RELEASE}")
+if (CMAKE_COMPILER_IS_GNUCXX)
+ if(NOT "${CMAKE_BUILD_TYPE}" STREQUAL "")
+ set(CMAKE_CXX_FLAGS "") # JL: Check if the original contents were not null!
+ set(CMAKE_C_FLAGS "")
+ else()
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS_RELEASE}")
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS_RELEASE}")
+ endif()
endif()
Vector(const Vector& d);
Vector(const Vector& d, const Range& r);
- Vector& operator = (const Vector& d);
-
+ inline Vector<_Tp>& operator = (const Vector& d)
+ { if( this == &d ) return *this; if( d.hdr.refcount ) ++*d.hdr.refcount; release(); hdr = d.hdr; return *this; }
~Vector();
Vector clone() const;
}
}
-template <typename _Tp> inline Vector<_Tp>& Vector<_Tp>::operator = (const Vector& d)
-{
- if( this == &d )
- return *this;
- if( d.hdr.refcount )
- ++*d.hdr.refcount;
- release();
- hdr = d.hdr;
- return *this;
-}
template <typename _Tp> inline Vector<_Tp>::~Vector() { release(); }
template <typename _Tp> inline Vector<_Tp> Vector<_Tp>::clone() const