# window env variable and cmake path

**URL:** https://discourse.cmake.org/t/window-env-variable-and-cmake-path/5410
**Category:** Usage
**Tags:** os:windows
**Created:** [April 8, 2022, 2:55am UTC](https://discourse.cmake.org/t/window-env-variable-and-cmake-path/5410 "2022-04-08T02:55:31Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![craig.scott](https://discourse.cmake.org/user_avatar/discourse.cmake.org/craig.scott/32/20_2.png) [@craig.scott](https://discourse.cmake.org/u/craig.scott)
#### Post date: [April 11, 2022, 1:22am UTC](https://discourse.cmake.org/t/window-env-variable-and-cmake-path/5410/4 "2022-04-11T01:22:58Z")

</div>

> [@alice](#):
>
> ```auto
> find_path(_opencv_INCLUDE_DIRS
> NAMES include/opencv_app.h
> PATHS "${LIB_ROOT}/opencv"
> )
> 
> ```

Arguments following `NAMES` cannot include a directory, they must be file names only.

> [@alice](#):
>
> I use three times PATHS  
> Can I only declare a variable to replace them?  
> I dont know what is the function?

I can’t follow what you’re asking. Can you please provide more detail so that your question(s) are clearer?

---

_[View the full topic](https://discourse.cmake.org/t/window-env-variable-and-cmake-path/5410)._
