# visual studio/cmake funny path can't be read in strings file

**URL:** https://discourse.cmake.org/t/visual-studio-cmake-funny-path-cant-be-read-in-strings-file/4445
**Category:** Usage
**Created:** [November 7, 2021, 3:43am UTC](https://discourse.cmake.org/t/visual-studio-cmake-funny-path-cant-be-read-in-strings-file/4445 "2021-11-07T03:43:43Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Zed](https://discourse.cmake.org/user_avatar/discourse.cmake.org/zed/32/1900_2.png) [@Zed](https://discourse.cmake.org/u/Zed)
#### Post date: [November 7, 2021, 3:43am UTC](https://discourse.cmake.org/t/visual-studio-cmake-funny-path-cant-be-read-in-strings-file/4445/1 "2021-11-07T03:43:43Z")

</div>

Hi -

Do you see the quote after the 0 and before the directory / below - on the error msg about the strings file?

I am not sure what is causing that. I am trying to piece this together.  
I am definitely going to be buying a book. thanks - robo-loki

set(Boost\_DEBUG “ON”)  
set(Boost\_VERBOSE “ON”)  
set(BOOST\_ROOT “C:/local/boost\_1\_73\_0” )  
set(Boost\_INCLUDE\_DIR =“C:/local/boost\_1\_73\_0” )  
set(Boost\_LIBRARY\_DIR = “C:/local/boost\_1\_73\_0/lib64-msvc-14.1”)

# Boost

FIND\_PACKAGE(Boost 1.73.0 COMPONENTS date\_time file\_system)

INCLUDE\_DIRECTORIES(${Boost\_INCLUDE\_DIRS})  
LINK\_DIRECTORIES(${Boost\_LIBRARY\_DIRS})

CMake Error at C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.20/Modules/FindBoost.cmake:1793 (file):  
file STRINGS file  
“C:/LucenePlusPlus-master/=“C:/local/boost\_1\_73\_0”/boost/version.hpp”  
cannot be read.

---

<div class="post-metadata">

### Author: ![fenrir](https://discourse.cmake.org/user_avatar/discourse.cmake.org/fenrir/32/734_2.png) [@fenrir](https://discourse.cmake.org/u/fenrir)
#### Post date: [November 7, 2021, 11:29am UTC](https://discourse.cmake.org/t/visual-studio-cmake-funny-path-cant-be-read-in-strings-file/4445/2 "2021-11-07T11:29:09Z")

</div>

> [@Zed](#):
>
> set(Boost\_INCLUDE\_DIR =“C:/local/boost\_1\_73\_0” )  
> set(Boost\_LIBRARY\_DIR = “C:/local/boost\_1\_73\_0/lib64-msvc-14.1”)

Most probably the “=” is the cause. It just shouldn’t be there.

> [@Zed](#):
>
> set(Boost\_DEBUG “ON”)  
> set(Boost\_VERBOSE “ON”)  
> set(BOOST\_ROOT “C:/local/boost\_1\_73\_0” )

Here you have it correct.

---

<div class="post-metadata">

### Author: ![Zed](https://discourse.cmake.org/user_avatar/discourse.cmake.org/zed/32/1900_2.png) [@Zed](https://discourse.cmake.org/u/Zed)
#### Post date: [November 7, 2021, 4:07pm UTC](https://discourse.cmake.org/t/visual-studio-cmake-funny-path-cant-be-read-in-strings-file/4445/3 "2021-11-07T16:07:25Z")

</div>

Hi fenrir-

Very cool. that solved it and my code went on to the next error msg. Luceneplusplus wants another library maybe outside of boost. I will go track it down. THANKS!
