Sumit Adhikari | 8 Aug 2012 12:52
Picon

Boost

I am searching boost like as follows :


# Boost Library Search
find_package (Boost)
if (Boost_FOUND)
  include_directories(${Boost_INCLUDE_DIRS})
  link_directories(${Boost_LIBRARY_DIRS})
  set(LIBS ${LIBS} ${Boost_LIBRARIES})
else()
   message(FATAL_ERROR "Boost Not Found")
endif (Boost_FOUND)

I see the boost library has been found but include_directories, link_directories and LIBS are not updated. Is this because I do not have boost.pc in my system ?

Any other way to resolve this ?

Regards,

--
Sumit Adhikari,
Institute of Computer Technology,
Faculty of Electrical Engineering,
Vienna University of Technology,
Gußhausstraße 27-29,1040 Vienna
--

Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake
Nick Overdijk | 8 Aug 2012 13:28
Gravatar

Re: Boost

Try again with this example:



On 2012-08-08, at 12:52:06 , Sumit Adhikari wrote:

I am searching boost like as follows :

# Boost Library Search
find_package (Boost)
if (Boost_FOUND)
  include_directories(${Boost_INCLUDE_DIRS})
  link_directories(${Boost_LIBRARY_DIRS})
  set(LIBS ${LIBS} ${Boost_LIBRARIES})
else()
   message(FATAL_ERROR "Boost Not Found")
endif (Boost_FOUND)

I see the boost library has been found but include_directories, link_directories and LIBS are not updated. Is this because I do not have boost.pc in my system ?

Any other way to resolve this ?

Regards,

--
Sumit Adhikari,
Institute of Computer Technology,
Faculty of Electrical Engineering,
Vienna University of Technology,
Gußhausstraße 27-29,1040 Vienna
--

Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

--

Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake
Sumit Adhikari | 8 Aug 2012 13:29
Picon

Re: Boost

Thanks for the reply. But is this is a Bug ?



Regards,
Sumit

On Wed, Aug 8, 2012 at 1:28 PM, Nick Overdijk <nick-N8sgwdRcn9TR7s880joybQ@public.gmane.org> wrote:
Try again with this example:



On 2012-08-08, at 12:52:06 , Sumit Adhikari wrote:

I am searching boost like as follows :

# Boost Library Search
find_package (Boost)
if (Boost_FOUND)
  include_directories(${Boost_INCLUDE_DIRS})
  link_directories(${Boost_LIBRARY_DIRS})
  set(LIBS ${LIBS} ${Boost_LIBRARIES})
else()
   message(FATAL_ERROR "Boost Not Found")
endif (Boost_FOUND)

I see the boost library has been found but include_directories, link_directories and LIBS are not updated. Is this because I do not have boost.pc in my system ?

Any other way to resolve this ?

Regards,

--
Sumit Adhikari,
Institute of Computer Technology,
Faculty of Electrical Engineering,
Vienna University of Technology,
Gußhausstraße 27-29,1040 Vienna
--

Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake




--
Sumit Adhikari,
Institute of Computer Technology,
Faculty of Electrical Engineering,
Vienna University of Technology,
Gußhausstraße 27-29,1040 Vienna
--

Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake
Nick Overdijk | 8 Aug 2012 15:35
Gravatar

Re: Boost

No, as far as I know you need to specify the components for boost always. I know of some find_boost that just put everything in there when you didn't name components, but as a rule, just specifiy the components. ;-)


On Wed, Aug 8, 2012 at 1:29 PM, Sumit Adhikari <sumit.adhikari-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Thanks for the reply. But is this is a Bug ?


Regards,
Sumit


On Wed, Aug 8, 2012 at 1:28 PM, Nick Overdijk <nick <at> astrant.net> wrote:
Try again with this example:



On 2012-08-08, at 12:52:06 , Sumit Adhikari wrote:

I am searching boost like as follows :

# Boost Library Search
find_package (Boost)
if (Boost_FOUND)
  include_directories(${Boost_INCLUDE_DIRS})
  link_directories(${Boost_LIBRARY_DIRS})
  set(LIBS ${LIBS} ${Boost_LIBRARIES})
else()
   message(FATAL_ERROR "Boost Not Found")
endif (Boost_FOUND)

I see the boost library has been found but include_directories, link_directories and LIBS are not updated. Is this because I do not have boost.pc in my system ?

Any other way to resolve this ?

Regards,

--
Sumit Adhikari,
Institute of Computer Technology,
Faculty of Electrical Engineering,
Vienna University of Technology,
Gußhausstraße 27-29,1040 Vienna
--

Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake




--
Sumit Adhikari,
Institute of Computer Technology,
Faculty of Electrical Engineering,
Vienna University of Technology,
Gußhausstraße 27-29,1040 Vienna

--

Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake
Sumit Adhikari | 8 Aug 2012 15:55
Picon

Re: Boost

Problem fixed. Thanks :)

On Wed, Aug 8, 2012 at 3:35 PM, Nick Overdijk <nick-N8sgwdRcn9TR7s880joybQ@public.gmane.org> wrote:
No, as far as I know you need to specify the components for boost always. I know of some find_boost that just put everything in there when you didn't name components, but as a rule, just specifiy the components. ;-)

On Wed, Aug 8, 2012 at 1:29 PM, Sumit Adhikari <sumit.adhikari-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Thanks for the reply. But is this is a Bug ?


Regards,
Sumit


On Wed, Aug 8, 2012 at 1:28 PM, Nick Overdijk <nick-N8sgwdRcn9TR7s880joybQ@public.gmane.org> wrote:
Try again with this example:



On 2012-08-08, at 12:52:06 , Sumit Adhikari wrote:

I am searching boost like as follows :

# Boost Library Search
find_package (Boost)
if (Boost_FOUND)
  include_directories(${Boost_INCLUDE_DIRS})
  link_directories(${Boost_LIBRARY_DIRS})
  set(LIBS ${LIBS} ${Boost_LIBRARIES})
else()
   message(FATAL_ERROR "Boost Not Found")
endif (Boost_FOUND)

I see the boost library has been found but include_directories, link_directories and LIBS are not updated. Is this because I do not have boost.pc in my system ?

Any other way to resolve this ?

Regards,

--
Sumit Adhikari,
Institute of Computer Technology,
Faculty of Electrical Engineering,
Vienna University of Technology,
Gußhausstraße 27-29,1040 Vienna
--

Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake




--
Sumit Adhikari,
Institute of Computer Technology,
Faculty of Electrical Engineering,
Vienna University of Technology,
Gußhausstraße 27-29,1040 Vienna




--
Sumit Adhikari,
Institute of Computer Technology,
Faculty of Electrical Engineering,
Vienna University of Technology,
Gußhausstraße 27-29,1040 Vienna
--

Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Gmane