[CMake] figuring out exact name of boost-regex lib to use

2012-02-28 Thread Bart Vandewoestyne
Hello list, I'm quite new to CMake, still learning my way around... I currently have the following in a CMakeList.txt file: set(BOOST_LIBNAME boost_regex) #set(BOOST_LIBNAME boost_regex-mt) target_link_libraries(airspace ${BOOST_LIBNAME}) On some platforms, it only works if I set the

Re: [CMake] figuring out exact name of boost-regex lib to use

2012-02-28 Thread Michael Wild
On 02/28/2012 10:00 AM, Bart Vandewoestyne wrote: Hello list, I'm quite new to CMake, still learning my way around... I currently have the following in a CMakeList.txt file: set(BOOST_LIBNAME boost_regex) #set(BOOST_LIBNAME boost_regex-mt) target_link_libraries(airspace

Re: [CMake] figuring out exact name of boost-regex lib to use

2012-02-28 Thread Michael Wild
Hi Bart Please keep answers on the list, so others can also profit from the discussion. On 02/28/2012 01:59 PM, Bart Vandewoestyne wrote: On 02/28/2012 10:28 AM, Michael Wild wrote: Don't do it this way. Use this: find_package(Boost REQUIRED COMPONENTS regex)