Add option to skip nested cmake structure on Windows

pull/15679/head
Maksim Shabunin 5 years ago
parent 84c3bbd934
commit 8b42995e8b
  1. 2
      cmake/OpenCVGenConfig.cmake

@ -122,7 +122,7 @@ endif()
# Part 3/3: ${BIN_DIR}/win-install/OpenCVConfig.cmake -> For use within binary installers/packages # Part 3/3: ${BIN_DIR}/win-install/OpenCVConfig.cmake -> For use within binary installers/packages
# -------------------------------------------------------------------------------------------- # --------------------------------------------------------------------------------------------
if(WIN32) if(WIN32)
if(CMAKE_HOST_SYSTEM_NAME MATCHES Windows) if(CMAKE_HOST_SYSTEM_NAME MATCHES Windows AND NOT OPENCV_SKIP_CMAKE_ROOT_CONFIG)
ocv_gen_config("${CMAKE_BINARY_DIR}/win-install" "${OPENCV_LIB_INSTALL_PATH}" "OpenCVConfig.root-WIN32.cmake.in") ocv_gen_config("${CMAKE_BINARY_DIR}/win-install" "${OPENCV_LIB_INSTALL_PATH}" "OpenCVConfig.root-WIN32.cmake.in")
else() else()
ocv_gen_config("${CMAKE_BINARY_DIR}/win-install" "" "") ocv_gen_config("${CMAKE_BINARY_DIR}/win-install" "" "")

Loading…
Cancel
Save