Fixed ticket #1580
This commit is contained in:
parent
b4895dbcaf
commit
eac055a27e
@ -299,12 +299,6 @@ macro(ocv_glob_modules)
|
|||||||
if(m MATCHES "^opencv_")
|
if(m MATCHES "^opencv_")
|
||||||
string(REGEX REPLACE "^opencv_" "" __shortname "${m}")
|
string(REGEX REPLACE "^opencv_" "" __shortname "${m}")
|
||||||
add_subdirectory("${OPENCV_MODULE_${m}_LOCATION}" "${CMAKE_CURRENT_BINARY_DIR}/${__shortname}")
|
add_subdirectory("${OPENCV_MODULE_${m}_LOCATION}" "${CMAKE_CURRENT_BINARY_DIR}/${__shortname}")
|
||||||
|
|
||||||
#workaround for link_directories inheritance
|
|
||||||
get_directory_property(__lnkfix DIRECTORY "${OPENCV_MODULE_${m}_LOCATION}" LINK_DIRECTORIES)
|
|
||||||
if(__lnkfix)
|
|
||||||
link_directories(${__lnkfix})
|
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
unset(__shortname)
|
unset(__shortname)
|
||||||
|
@ -244,18 +244,11 @@ if(IOS)
|
|||||||
set(HIGHGUI_LIBRARIES ${HIGHGUI_LIBRARIES} bz2 "-framework QuartzCore" "-framework CoreFoundation" "-framework ImageIO" "-framework CoreGraphics" "-framework AVFoundation")
|
set(HIGHGUI_LIBRARIES ${HIGHGUI_LIBRARIES} bz2 "-framework QuartzCore" "-framework CoreFoundation" "-framework ImageIO" "-framework CoreGraphics" "-framework AVFoundation")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(OPENCV_BUILD_3RDPARTY_LIBS AND WIN32)
|
|
||||||
link_directories("${CMAKE_CURRENT_SOURCE_DIR}/../../3rdparty/lib")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
source_group("Src" FILES ${highgui_srcs} ${highgui_hdrs})
|
source_group("Src" FILES ${highgui_srcs} ${highgui_hdrs})
|
||||||
source_group("Include" FILES ${highgui_ext_hdrs})
|
source_group("Include" FILES ${highgui_ext_hdrs})
|
||||||
ocv_set_module_sources(HEADERS ${highgui_ext_hdrs} SOURCES ${highgui_srcs} ${highgui_hdrs} ${grfmt_srcs} ${grfmt_hdrs})
|
ocv_set_module_sources(HEADERS ${highgui_ext_hdrs} SOURCES ${highgui_srcs} ${highgui_hdrs} ${grfmt_srcs} ${grfmt_hdrs})
|
||||||
|
|
||||||
ocv_module_include_directories()
|
ocv_module_include_directories()
|
||||||
if(WIN32)
|
|
||||||
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/../../3rdparty/include")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
ocv_create_module(${GRFMT_LIBS} ${HIGHGUI_LIBRARIES})
|
ocv_create_module(${GRFMT_LIBS} ${HIGHGUI_LIBRARIES})
|
||||||
|
|
||||||
@ -264,9 +257,12 @@ if(BUILD_SHARED_LIBS)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
set_target_properties(${the_target} PROPERTIES LINK_FLAGS "/NODEFAULTLIB:atlthunk.lib /NODEFAULTLIB:atlsd.lib /NODEFAULTLIB:libcmt.lib /DEBUG")
|
set_target_properties(${the_module} PROPERTIES LINK_FLAGS "/NODEFAULTLIB:atlthunk.lib /NODEFAULTLIB:atlsd.lib /NODEFAULTLIB:libcmt.lib /DEBUG")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
#stop automatic dependencies propagation for this module
|
||||||
|
set_target_properties(${the_module} PROPERTIES LINK_INTERFACE_LIBRARIES "")
|
||||||
|
|
||||||
ocv_add_precompiled_headers(${the_module})
|
ocv_add_precompiled_headers(${the_module})
|
||||||
|
|
||||||
ocv_add_accuracy_tests()
|
ocv_add_accuracy_tests()
|
||||||
|
Loading…
Reference in New Issue
Block a user