<div class="gmail_quote">On Fri, Sep 18, 2009 at 6:51 PM, Alain Leblanc <span dir="ltr"><<a href="mailto:aalebl@gmail.com">aalebl@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
# Change the following to look for a particular version of boost<br>
# With the current options nmake will look for the mt-gd-1_39, even though<br>
# the mt-1_39 is there. Probably due to compiler options.<br>
<br>
set (BOOST_SUFFIX "-vc90-mt-gd-1_39")<br>
<br>
find_library(BOOST_REGEX NAMES boost_regex-mt<br>
boost_regex${BOOST_SUFFIX} PATHS ${LIBRARIES_SEARCH_PATH})<br>
find_library(BOOST_FILESYSTEM NAMES boost_filesystem-mt<br>
boost_filesystem${BOOST_SUFFIX} PATHS ${LIBRARIES_SEARCH_PATH})<br>
find_library(BOOST_SYSTEM NAMES boost_system-mt<br>
boost_system${BOOST_SUFFIX} PATHS ${LIBRARIES_SEARCH_PATH})<br>
find_library(BOOST_DATETIME NAMES boost_date_time-mt<br>
boost_date_time${BOOST_SUFFIX} PATHS ${LIBRARIES_SEARCH_PATH})<br>
find_library(BOOST_SYSTEM NAMES boost_system-mt<br>
boost_system${BOOST_SUFFIX} PATHS ${LIBRARIES_SEARCH_PATH})<br>
<br>
...<br>
<br>
add_library(utility SHARED ${SRC_FILES})<br>
target_link_libraries(utility ${MATHSTAT} ${BOOST_LIBRARIES})<br>
<br>
where ${BOOST_LIBRARIES} is a list of all the BOOST_REGEX, etc<br>
<br>
<br>
Am I missing something obvious here?<br></blockquote><div><br>I would double check your paths perhaps that's why it couldn't find the boost import library?<br><br>You may also want to try out FindBoost.cmake. It handles a lot of the details of searching for boost components like "filesystem", "system", etc. and it works crossplatform as well.<br>
</div></div>-- <br>Philip Lowman<br>