mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
removed OPENCV_BUILD_SHARED_LIB in favor of BUILD_SHARED_LIBS
This commit is contained in:
@@ -748,7 +748,7 @@ cvGetModuleInfo( const char* name, const char **version, const char **plugin_lis
|
||||
*plugin_list = plugin_list_buf;
|
||||
}
|
||||
|
||||
#if defined OPENCV_BUILD_SHARED_LIB && defined CVAPI_EXPORTS && defined WIN32 && !defined WINCE
|
||||
#if defined BUILD_SHARED_LIBS && defined CVAPI_EXPORTS && defined WIN32 && !defined WINCE
|
||||
BOOL WINAPI DllMain( HINSTANCE, DWORD fdwReason, LPVOID )
|
||||
{
|
||||
if( fdwReason == DLL_THREAD_DETACH || fdwReason == DLL_PROCESS_DETACH )
|
||||
|
||||
@@ -68,7 +68,7 @@ if (HAVE_CUDA)
|
||||
string(REPLACE "/EHsc-" "/EHs" CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}")
|
||||
endif()
|
||||
|
||||
if (OPENCV_BUILD_SHARED_LIB)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} "-Xcompiler;-DCVAPI_EXPORTS")
|
||||
endif()
|
||||
|
||||
|
||||
@@ -244,7 +244,7 @@ set(lib_srcs ${highgui_srcs} ${grfmt_srcs})
|
||||
# ----------------------------------------------------------------------------------
|
||||
set(the_target "opencv_highgui")
|
||||
|
||||
if (OPENCV_BUILD_SHARED_LIB)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_definitions(-DHIGHGUI_EXPORTS -DCVAPI_EXPORTS)
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user