[CMake] Cannot seem to add include directory

Clément Gregoire lectem at gmail.com
Wed Nov 22 14:12:39 EST 2017


Well, that's the standard way to add include for msbuild projects, other
variables are meant to be used for the tool chain includes only

Le mer. 22 nov. 2017 à 20:04, Michael Powell <mwpowellhtx at gmail.com> a
écrit :

> On Wed, Nov 22, 2017 at 1:45 PM, Michael Powell <mwpowellhtx at gmail.com>
> wrote:
> > Hello,
> >
> > I have a couple of libraries added, one SHARED and the other STATIC,
> > for which I want to add include directories, but they are not adding.
>
> Oh, okay... So they are being added under "additional include
> directories". Or they seem to be...
>
> > I am trying the following:
> >
> > target_include_directories (${MY_PROJECT_NAME_SHARED} PUBLIC
> >     "G:/Source/Boost.Installed/boost-1.65.1/include"
> > )
> >
> > Where MY_PROJECT_NAME_SHARED if my project name.
> >
> > I've also tried with the $<BUILD_INTERFACE: ...>, to no avail.
> >
> > I review my VS2015 project settings and I do not see any directories
> > changing after the solution reloads.
> >
> > Cheers,
> >
> > Michael Powell
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20171122/8cf626c0/attachment.html>


More information about the CMake mailing list