# IMPORTED\_IMPLIB not set for imported target

**URL:** https://discourse.cmake.org/t/imported-implib-not-set-for-imported-target/5398
**Category:** Usage
**Tags:** os:windows
**Created:** [April 7, 2022, 2:05pm UTC](https://discourse.cmake.org/t/imported-implib-not-set-for-imported-target/5398 "2022-04-07T14:05:04Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![alice](https://discourse.cmake.org/user_avatar/discourse.cmake.org/alice/32/1615_2.png) [@alice](https://discourse.cmake.org/u/alice)
#### Post date: [April 10, 2022, 7:50am UTC](https://discourse.cmake.org/t/imported-implib-not-set-for-imported-target/5398/3 "2022-04-10T07:50:51Z")

</div>

I replace ${OpenCV\_LIBRARIES} with sc\_opencv.  
I try to set ${sc\_opencv} with `MAP_IMPORTED_CONFIG_<CONFIG>`  
But ${sc\_opencv} is empty with cmake message(${sc\_opencv})

```auto
cmake_minimum_required (VERSION 3.8)

project(test)
find_package(OpenCV CONFIG REQUIRED)
add_executable (test "main.cpp")
add_library(sc_opencv
        STATIC
        IMPORTED)
set_property(
  TARGET sc_opencv APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG
  )
set_target_properties(sc_opencv PROPERTIES
  IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG "CXX"
  IMPORTED_LOCATION_DEBUG "D:/TEST/debug/opencv/x64/vc16/lib"
  )
target_include_directories(test PUBLIC
	${OpenCV_INCLUDE_DIRS}
)
target_link_libraries(test PUBLIC
	${sc_opencv}
)

```

Here is the ${OpenCV\_LIBRARIES}

```auto
opencv_calib3d;opencv_core;opencv_dnn;opencv_features2d;opencv_flann;opencv_gapi;opencv_highgui;

```

---

_[View the full topic](https://discourse.cmake.org/t/imported-implib-not-set-for-imported-target/5398)._
