diff --git a/modules/gpu/CMakeLists.txt b/modules/gpu/CMakeLists.txt index 13c5e5e814597e039faa84ce7d211bc278f93677..114fc810b1f78ff81dbf54e6cd4a1791e97fb42e 100644 --- a/modules/gpu/CMakeLists.txt +++ b/modules/gpu/CMakeLists.txt @@ -108,7 +108,7 @@ if(ENABLE_SOLUTION_FOLDERS) set_target_properties(${the_target} PROPERTIES FOLDER "modules") endif() -if (OPENCV_BUILD_SHARED_LIB) +if (BUILD_SHARED_LIBS) if (MSVC) set_target_properties(${the_target} PROPERTIES DEFINE_SYMBOL CVAPI_EXPORTS) else()